Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-11728

Set fallback database for functions

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Impala 4.3.0
    • None
    • None
    • ghx-label-10

    Description

      CREATE FUNCTION default.function_name([arg_type[, arg_type...])
        RETURNS return_type
        LOCATION 'hdfs_path_to_dot_so'
        SYMBOL='symbol_name' 

       

      use functional;
      select function_name();
      ERROR: AnalysisException: functional.function_name() unknown for database functional.

       

      The create function statement can only works on specified default database.

      Add a fallback database for functions as query option. It works on all database without changing query. 

      use functional;
      set db_name_with_global_udf=default;
      select function_name(); // It works.

      Attachments

        Activity

          People

            gaoxiaoqing gaoxiaoqing
            gaoxiaoqing gaoxiaoqing
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: