[ 
https://issues.apache.org/jira/browse/LIVY-871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

dohongdayi updated LIVY-871:
----------------------------
    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:

{code:scala}
val result = spark.sql("select b, a from table")
%table result
{code}

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

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


{code:scala}
val result = spark.sql("select b, a from table")
%table result
{code}

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


> Add client config to keep fields of table magic in query order
> --------------------------------------------------------------
>
>                 Key: LIVY-871
>                 URL: https://issues.apache.org/jira/browse/LIVY-871
>             Project: Livy
>          Issue Type: Improvement
>          Components: REPL
>    Affects Versions: 0.8.0
>            Reporter: dohongdayi
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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:
> {code:scala}
> val result = spark.sql("select b, a from table")
> %table result
> {code}
> 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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to