Uploaded image for project: 'Livy'
  1. Livy
  2. LIVY-871

Add client config to keep fields of table magic in query order

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.8.0
    • 0.9.0
    • REPL
    • None

    Description

      Currently the fields in table magic are sorted by field name by default, but in many scenarios, we want to keep fields of table magic in query order, for example:

      val result = spark.sql("select b, a from table")
      %table result
      

      currently Livy responses json with fields in the order of "a", "b", but we want them in the order of "b", "a" which is consistent with the SQL

      Attachments

        Activity

          People

            Unassigned Unassigned
            dohongdayi dohongdayi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m