Is there a function in Hiveql that is equivalent to Right() or Left() fuction form TSQL?
For example, RIGHT(col1,10)
to get the first 10 characters from col1.
thank you
There is no right or left function but you can implement same with substr like
left (column, nchar) = substr(column, 1, nchar)
right (column, nchar) = substr (column, (-1)* nchar)
Note: Here nchar is number of characters