Apache Drill
  1. Apache Drill
  2. DRILL-981

Display JSON map object in the same order as the original JSON object

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.4.0
    • Component/s: None
    • Labels:
      None

      Description

      When DRILL display a JSON object as a query result, Drill should display a map object in the same order as that in the original JSON object.

      To do that, we need keep track the insertion order of vectors added to map object, and shows the content of map in the insertion order.

        Activity

        Hide
        Jacques Nadeau added a comment -

        merged on or before f86639c

        Show
        Jacques Nadeau added a comment - merged on or before f86639c
        Hide
        Jacques Nadeau added a comment -

        Adding a quick comment here. This fix only applies in the case of a standard order across all files and records where the fields occur in the first record. Otherwise, map order will be interdeterminate

        Show
        Jacques Nadeau added a comment - Adding a quick comment here. This fix only applies in the case of a standard order across all files and records where the fields occur in the first record. Otherwise, map order will be interdeterminate

          People

          • Assignee:
            DrillCommitter
            Reporter:
            Jinfeng Ni
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development