You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (JIRA)" <ji...@apache.org> on 2016/03/21 11:10:25 UTC
[jira] [Resolved] (SPARK-12789) Support order by ordinal in SQL
[ https://issues.apache.org/jira/browse/SPARK-12789?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-12789.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
Issue resolved by pull request 11815
[https://github.com/apache/spark/pull/11815]
> Support order by ordinal in SQL
> -------------------------------
>
> Key: SPARK-12789
> URL: https://issues.apache.org/jira/browse/SPARK-12789
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Reporter: zhichao-li
> Priority: Minor
> Fix For: 2.0.0
>
>
> This is to support order by position in SQL, e.g.
> {noformat}
> select c1, c2, c3 from tbl order by 1 desc, 3
> {noformat}
> should be equivalent to
> {noformat}
> select c1, c2, c3 from tbl order by c1 desc, c3
> {noformat}
> We only convert integer literals (not foldable expressions).
> We should make sure this also works with select *.
> This should be controlled by config option spark.sql.orderByOrdinal.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org