07ARB commented on issue #27024: [SPARK-29854]lpad and rpad built in function 
should throw Error or Exception for invalid length value
URL: https://github.com/apache/spark/pull/27024#issuecomment-569397076
 
 
   in Hive : SELECT lpad('hihhhhhhhhhhhhhhhhhhhhhhh', 'Expected int', 
'????????????');
    Error: Error while compiling statement: FAILED: SemanticException [Error 
10016]: Line 1:67 Argument type mismatch ''????????????'': lpad only takes 
INT/SHORT/BYTE types as 2-ths argument, got DECIMAL (state=42000,code=10016)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to