spark-instrumented-optimizer/sql/hive
Cheng Lian a04b1de5fa [SPARK-14981][SQL] Throws exception if DESC is specified for sorting columns
## What changes were proposed in this pull request?

Currently Spark SQL doesn't support sorting columns in descending order. However, the parser accepts the syntax and silently drops sorting directions. This PR fixes this by throwing an exception if `DESC` is specified as sorting direction of a sorting column.

## How was this patch tested?

A test case is added to test the invalid sorting order by checking exception message.

Author: Cheng Lian <lian@databricks.com>

Closes #12759 from liancheng/spark-14981.
2016-04-29 14:52:32 -07:00
..
compatibility/src/test/scala/org/apache/spark/sql/hive/execution [SPARK-14991][SQL] Remove HiveNativeCommand 2016-04-28 21:58:48 -07:00
src [SPARK-14981][SQL] Throws exception if DESC is specified for sorting columns 2016-04-29 14:52:32 -07:00
pom.xml Revert "[SPARK-14613][ML] Add @Since into the matrix and vector classes in spark-mllib-local" 2016-04-28 19:57:41 -07:00