DROP FUNCTION udf_testing.has_vowels; Query: DROP FUNCTION udf_testing.has_vowels ERROR: ImpalaRuntimeException: Error making 'dropFunction' RPC to Hive Metastore: CAUSED BY: NoSuchObjectException: Function has_vowels does not existThe “SHOW CREATE FUNCTION” query worked OK as below:
SHOW CREATE FUNCTION has_vowels; Query: SHOW CREATE FUNCTION has_vowels +-----------------------------------------------------------------------------+ | result | +-----------------------------------------------------------------------------+ | CREATE FUNCTION udf_testing.has_vowels(STRING) | | RETURNS BOOLEAN | | LOCATION 'hdfs://nameservice1/user/hive/impala-udf/libudfsample.so' | | SYMBOL='_Z9HasVowelsPN10impala_udf15FunctionContextERKNS_9StringValE' | | | +-----------------------------------------------------------------------------+ Fetched 1 row(s) in 0.03sAfter researching, it turned out that when dropping functions in Impala, you will also need to specify the function parameters. So below query will work:
DROP FUNCTION udf_testing.has_vowels(STRING); Query: DROP FUNCTION udf_testing.has_vowels(STRING)This is not immediately obvious, but it is documented on Cloudera’ offical documentation site: DROP FUNCTION Statement. Hope above helps.
Thank you! This helped a lot 🙂