When a semantic exception like UDFArgumentException is throw Hive returns the 
error message with "Wrong arguments" and the last argument in the function 
appended to the beginning of the error message. Something like this. Is there a 
way to get all of the arguments included or is that just a limit of how the 
SemanticException works?

SQL Error [10014] [42000]: Error while compiling statement: FAILED: 
SemanticException [Error 10014]: Line 1:7 Wrong arguments 'false': to_timestamp 
requires a string for the first argument, got boolean
  Error while compiling statement: FAILED: SemanticException [Error 10014]: 
Line 1:7 Wrong arguments 'false': to_timestamp requires a string for the first 
argument, got boolean
  Error while compiling statement: FAILED: SemanticException [Error 10014]: 
Line 1:7 Wrong arguments 'false': to_timestamp requires a string for the first 
argument, got boolean
    org.apache.hadoop.hive.ql.parse.SemanticException:Line 1:7 Wrong arguments 
'false': to_timestamp requires a string for the first argument, got boolean
    org.apache.hadoop.hive.ql.parse.SemanticException:Line 1:7 Wrong arguments 
'false': to_timestamp requires a string for the first argument, got boolean

Reply via email to