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

Apache Drill API doesn't preserve the column order

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Bug
    • 1.14.0
    • None
    • None

    Description

      When we try to query through Apache Drill REST API, the returned response doesn't maintain the column order as given in the query.

      Example: Request: {"queryType" : "SQL","query" : "select a,b,c from dfs.`\files\test.json`"};

      Response: { "queryId": "233ff474-0902-828b-9efd-0a0bd57eee51",
      "columns": [
      "a",
      "b",
      "c"
      ],
      "rows": [

      { "b": "abc", "c": " xyz", "a": "uxv"}

      , { "b": "abc", "c": " xyz", "a": "uxv"}

      ]
      }

      Is there any way we can maintain the column order through REST API call?

       

      Attachments

        Activity

          People

            dzamo James Turton
            Gayathri01 Gayathri
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: