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

Performance: Struct IN() clauses are extremely slow (~10x slower)

Log workAgile BoardRank to TopRank to BottomVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0, 2.0.0
    • Fix Version/s: 1.3.0, 2.0.0
    • Component/s: Query Processor
    • Labels:
      None

      Description

      Hive today does not support tuple IN() clauses today, but provides a way to rewrite (a,b) IN (...) using complex types.

      select * from table where STRUCT(a,b) IN (STRUCT(1,2), STRUCT(2,3) ...);

      This would be fine, except it is massively slower due to ObjectConvertors and Struct constructor not being constant folded.

        Attachments

        1. HIVE-11428.2.patch
          17 kB
          Hari Sankar Sivarama Subramaniyan
        2. HIVE-11428.1.patch
          11 kB
          Hari Sankar Sivarama Subramaniyan

        Issue Links

          Activity

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

            People

            • Assignee:
              hsubramaniyan Hari Sankar Sivarama Subramaniyan Assign to me
              Reporter:
              gopalv Gopal Vijayaraghavan

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment