You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by Shawn Weeks <sw...@weeksconsulting.us> on 2018/10/20 14:32:41 UTC

SemanticException Expression Arguments

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