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

KeyWrapperComparator throws exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • Physical Optimizer
    • None

    Description

      TopNKeyOperator.KeyWrapperComparator throws exception when a new key and a copied key should be compared.

      The current implementation uses the standard object inspectors for all KeyWrapper instances. However when comparing untouched KeyWrappers the key object inspector should be used which can be extracted form Operator.inputObjectInspectors during initialization of the key's ExprNodeEvaluator. 

      This can cause a ClassCastException when the comparator is used collections like TreeSet.

      Attachments

        1. HIVE-22508.1.patch
          31 kB
          Krisztian Kasa
        2. HIVE-22508.1.patch
          31 kB
          Krisztian Kasa
        3. HIVE-22508.1.patch
          31 kB
          Krisztian Kasa
        4. HIVE-22508.2.patch
          32 kB
          Krisztian Kasa
        5. HIVE-22508.2.patch
          32 kB
          Krisztian Kasa
        6. HIVE-22508.2.patch
          32 kB
          Krisztian Kasa
        7. HIVE-22508.2.patch
          32 kB
          Krisztian Kasa

        Issue Links

          Activity

            People

              kkasa Krisztian Kasa
              kkasa Krisztian Kasa
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: