Home / Hive / Query compilation
Hive: SemanticException [Error 10014]: Wrong arguments
org.apache.hadoop.hive.ql.parse.SemanticExceptionWrong argumentsA 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.
Common causes
- 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.
- 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
ErrorMsg.javainapache/hiveatrel/release-4.2.1- Message checked in Hive 4.2.1 (error code 10014)