Github user gatorsmile commented on the pull request: https://github.com/apache/spark/pull/10731#issuecomment-197727832 Just did a quick search. > SQL92 allowed the use of ordinal positions for sort_expressions, but this functionality has been deprecated and should not be used in SQL2003 queries. However, the mainstream RDBMS still support it. - Oracle: https://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_10002.htm#i2171079 - DB2: https://www.ibm.com/support/knowledgecenter/SSEPEK_10.0.0/com.ibm.db2z10.doc.sqlref/src/tpc/db2z_sql_orderbyclause.dita - SQL Server: https://msdn.microsoft.com/en-us/library/ms188385.aspx None of these top 3 enterprise RDBMS are allowing negative positions. I think we should not support the negative integer in Order by. Thanks!
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org