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

Cannot execute IR UDF when single node execution is enabled

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Impala 2.8.0
    • Fix Version/s: Impala 2.8.0
    • Component/s: Backend
    • Labels:
      None

      Description

      There is a bad interaction between the single-node execution optimisation and IR UDFs. The optimisation overrides the disable_codegen query option, which prevents the UDF from running:

      [tarmstrong-box.ca.cloudera.com:21000] > set disable_codegen=0;
      DISABLE_CODEGEN set to 0
      [tarmstrong-box.ca.cloudera.com:21000] > set EXEC_SINGLE_NODE_ROWS_THRESHOLD=100;
      EXEC_SINGLE_NODE_ROWS_THRESHOLD set to 100
      [tarmstrong-box.ca.cloudera.com:21000] > select twenty_one_args(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21);
      Query: select twenty_one_args(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21)
      Query submitted at: 2016-11-04 12:10:49 (Coordinator: http://tarmstrong-box:25000)
      ERROR: Cannot interpret native UDF 'twenty_one_args': number of arguments is more than 20. Codegen is needed. Please set DISABLE_CODEGEN to false.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kwho Michael Ho
                Reporter:
                tarmstrong Tim Armstrong
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: