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

GenericUDFNamedStruct should constant fold at compile time

Log workAgile BoardRank to TopRank to BottomAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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.1.patch
          10 kB
          Mykhailo Kysliuk
        2. HIVE-20351.2.patch
          10 kB
          Mykhailo Kysliuk
        3. HIVE-20351.3.patch
          13 kB
          Mykhailo Kysliuk
        4. HIVE-20351.4.patch
          13 kB
          Mykhailo Kysliuk
        5. HIVE-20351.5.patch
          12 kB
          Mykhailo Kysliuk

        Issue Links

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              mkysliuk Mykhailo Kysliuk Assign to me
              Reporter:
              mkysliuk Mykhailo Kysliuk

              Dates

              • Created:
                Updated:

                Issue deployment