Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-981

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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: 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
        jnadeau 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
        jnadeau 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
        Hide
        jnadeau Jacques Nadeau added a comment -

        merged on or before f86639c

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development