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

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

    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.1.patch
          11 kB
          Hari Sankar Sivarama Subramaniyan
        2. HIVE-11428.2.patch
          17 kB
          Hari Sankar Sivarama Subramaniyan

          Issue Links

            Activity

              People

              • Assignee:
                hsubramaniyan Hari Sankar Sivarama Subramaniyan
                Reporter:
                gopalv Gopal Vijayaraghavan
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: