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

Explain output: printed nested mapvalues are dependent on map entry iteration order

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0
    • None
    • None

    Description

      Order of map keys are handled by a TreeSet in ExplainTask#outputMap, but for Map values, there is only a toString() which implicitly iterates over the map and prints them - in case of a HashMap this iteration order may vary between jdk versions - and may cause false positive testfailures

      https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/exec/ExplainTask.java#L472

      Attachments

        1. HIVE-14287.1.patch
          2 kB
          Zoltan Haindrich

        Issue Links

          Activity

            People

              kgyrtkirk Zoltan Haindrich
              kgyrtkirk Zoltan Haindrich
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: