공부
[sql] User class threw exception: org.apache.spark.sql.AnalysisException: Function {custom_function} already exists
승가비
2022. 12. 15. 19:11
728x90
https://docs.snowflake.com/ko/sql-reference/sql/create-function.html
CREATE FUNCTION — Snowflake Documentation
함수가 NULL 값을 반환할 수 있거나 NON-NULL 값만 반환해야 할지 여부를 지정합니다. 기본값은 NULL입니다(즉, 이 함수는 NULL을 반환할 수 있음). 참고 현재, NOT NULL 절은 SQL UDFs에 대해 적용되지 않습
docs.snowflake.com
https://stackoverflow.com/questions/51743367/hive-create-function-if-not-exists
Hive: Create function if not exists
At the start of my hive script i have the statement: create function x as y using jar z; Now, if the function already exists, it will give me an error: Error while processing statement: FAILED:
stackoverflow.com
ADD JAR hdfs:///tmp/udfs/jar1.jar;
DROP TEMPORARY FUNCTION IF EXISTS rowid;
CREATE TEMPORARY FUNCTION rowid AS 'com.example.hive.jartest.RowIdUDF';
728x90