Skip to content

Conversation

@liancheng
Copy link
Contributor

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.

@SparkQA
Copy link

SparkQA commented Apr 28, 2016

Test build #57264 has finished for PR 12759 at commit 5a3aa2c.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Apr 29, 2016

Test build #57292 has finished for PR 12759 at commit 9b0d518.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@liancheng
Copy link
Contributor Author

retest this please

@SparkQA
Copy link

SparkQA commented Apr 29, 2016

Test build #57310 has finished for PR 12759 at commit 9b0d518.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@marmbrus
Copy link
Contributor

Thanks, merging to master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants