dataengref errors

Home / Hive / Query compilation

Hive: SemanticException [Error 10014]: Wrong arguments

org.apache.hadoop.hive.ql.parse.SemanticExceptionWrong arguments

A built-in function received arguments of the wrong number or type. The rest of the message, after the function name, explains which argument was rejected.

Causes · Fixes · Source

Common causes

  1. An argument has the wrong type, for example a STRING where a numeric or date type is required.How to confirm: The detail text names the argument position and the expected type.
  2. A function from another dialect is called with its own argument order, for example date_add with a unit argument.How to confirm: Compare the call with DESCRIBE FUNCTION EXTENDED <name>.

How to fix it

Check the signature with DESCRIBE FUNCTION EXTENDED and cast arguments to the expected types.

Where the message comes from

References

Related errors

Last checked: