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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0, 2.0.0
    • 1.3.0, 2.0.0
    • Query Processor
    • 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.1.patch
          11 kB
          Hari Sankar Sivarama Subramaniyan
        2. HIVE-11428.2.patch
          17 kB
          Hari Sankar Sivarama Subramaniyan

        Issue Links

          Activity

            People

              hsubramaniyan Hari Sankar Sivarama Subramaniyan
              gopalv Gopal Vijayaraghavan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: