I need the output of a string column in my table as 13 length char, irrespective of whatever length it is, i need to stuff the remaining chars with 0...
I tried to use the following code in my hive query, but failed to get the desired output
right('0000000000000' + ProductID, 13)
Any help? Thanks