Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-20351

GenericUDFNamedStruct should constant fold at compile time

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Reproduced at hive-3.0.

      When we run hive query:

      select named_struct('Total','Total') from test;
      

      We could see the ERROR at hiveserver logs:

      2018-05-25T15:18:13,182 ERROR [main] optimizer.ConstantPropagateProcFactory: Unable to evaluate org.apache.hadoop.hive.ql.udf.generic.GenericUDFNamedStruct@a0bf272. Return value unrecoginizable.
      

      This error is harmless because all results are correct. But named_struct constant values should be processed correctly.

        Attachments

        1. HIVE-20351.5.patch
          12 kB
          Mykhailo Kysliuk
        2. HIVE-20351.4.patch
          13 kB
          Mykhailo Kysliuk
        3. HIVE-20351.3.patch
          13 kB
          Mykhailo Kysliuk
        4. HIVE-20351.2.patch
          10 kB
          Mykhailo Kysliuk
        5. HIVE-20351.1.patch
          10 kB
          Mykhailo Kysliuk

          Issue Links

            Activity

              People

              • Assignee:
                mkysliuk Mykhailo Kysliuk
                Reporter:
                mkysliuk Mykhailo Kysliuk
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: