Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-28334][SQL][TEST] Port select.sql #25096

Closed
wants to merge 6 commits into from
Closed

[SPARK-28334][SQL][TEST] Port select.sql #25096

wants to merge 6 commits into from

Conversation

wangyum
Copy link
Member

@wangyum wangyum commented Jul 10, 2019

What changes were proposed in this pull request?

This PR is to port select.sql from PostgreSQL regression tests. https://github.com/postgres/postgres/blob/REL_12_BETA2/src/test/regress/sql/select.sql

The expected results can be found in the link: https://github.com/postgres/postgres/blob/REL_12_BETA2/src/test/regress/expected/select.out

When porting the test cases, found four PostgreSQL specific features that do not exist in Spark SQL:
SPARK-28010: Support ORDER BY ... USING syntax
SPARK-28329: Support SELECT INTO syntax
SPARK-28330: Enhance query limit
SPARK-28296: Improved VALUES support

Also, found one inconsistent behavior:
SPARK-28333: NULLS FIRST for DESC and NULLS LAST for ASC

How was this patch tested?

N/A

@SparkQA
Copy link

SparkQA commented Jul 10, 2019

Test build #107455 has finished for PR 25096 at commit 767c677.

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

@SparkQA
Copy link

SparkQA commented Jul 10, 2019

Test build #107466 has finished for PR 25096 at commit c655e58.

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

@dongjoon-hyun
Copy link
Member

Hi, @maropu .
Could you review this please, too?

@SparkQA
Copy link

SparkQA commented Jul 11, 2019

Test build #107491 has finished for PR 25096 at commit 7aa7d49.

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

@maropu
Copy link
Member

maropu commented Jul 11, 2019

I left one comment though, it looks ok to me.

@SparkQA
Copy link

SparkQA commented Jul 11, 2019

Test build #107532 has finished for PR 25096 at commit 092bba9.

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

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Thank you so much, @wangyum and @maropu !
Merged to master.

@wangyum wangyum deleted the SPARK-28334 branch July 11, 2019 23:19
vinodkc pushed a commit to vinodkc/spark that referenced this pull request Jul 18, 2019
## What changes were proposed in this pull request?

This PR is to port select.sql from PostgreSQL regression tests. https://github.com/postgres/postgres/blob/REL_12_BETA2/src/test/regress/sql/select.sql

The expected results can be found in the link: https://github.com/postgres/postgres/blob/REL_12_BETA2/src/test/regress/expected/select.out

When porting the test cases, found four PostgreSQL specific features that do not exist in Spark SQL:
[SPARK-28010](https://issues.apache.org/jira/browse/SPARK-28010): Support ORDER BY ... USING syntax
[SPARK-28329](https://issues.apache.org/jira/browse/SPARK-28329): Support SELECT INTO syntax
[SPARK-28330](https://issues.apache.org/jira/browse/SPARK-28330): Enhance query limit
[SPARK-28296](https://issues.apache.org/jira/browse/SPARK-28296): Improved VALUES support

Also, found one inconsistent behavior:
[SPARK-28333](https://issues.apache.org/jira/browse/SPARK-28333): `NULLS FIRST` for `DESC` and `NULLS LAST` for `ASC`

## How was this patch tested?

N/A

Closes apache#25096 from wangyum/SPARK-28334.

Authored-by: Yuming Wang <yumwang@ebay.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants