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-28000][SQL][TEST] Port comments.sql #25588

Closed
wants to merge 3 commits into from
Closed

[SPARK-28000][SQL][TEST] Port comments.sql #25588

wants to merge 3 commits into from

Conversation

wangyum
Copy link
Member

@wangyum wangyum commented Aug 27, 2019

What changes were proposed in this pull request?

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

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

When porting the test cases, found one PostgreSQL specific features that do not exist in Spark SQL:
SPARK-28880: ANSI SQL: Bracketed comments

How was this patch tested?

N/A


SELECT 'before multi-line' AS fourth;
-- [SPARK-28880] ANSI SQL: Bracketed comments
/* This is an example of SQL which should not execute:
Copy link
Member Author

Choose a reason for hiding this comment

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

Do we need to comment these unsupported cases?

Copy link
Member

Choose a reason for hiding this comment

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

I think its ok to comment out this case.

@SparkQA
Copy link

SparkQA commented Aug 27, 2019

Test build #109769 has finished for PR 25588 at commit 7057f79.

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

@wangyum
Copy link
Member Author

wangyum commented Aug 27, 2019

retest this please

@SparkQA
Copy link

SparkQA commented Aug 27, 2019

Test build #109816 has finished for PR 25588 at commit 7057f79.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds no public classes.

@wangyum
Copy link
Member Author

wangyum commented Aug 27, 2019

retest this please

@SparkQA
Copy link

SparkQA commented Aug 27, 2019

Test build #109821 has finished for PR 25588 at commit 7057f79.

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

--
--
-- COMMENTS
-- https://github.com/postgres/postgres/blob/REL_12_BETA2/src/test/regress/sql/comments.sql
Copy link
Member

Choose a reason for hiding this comment

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

Shall we use BETA3 from now? I believe it will be the same with BETA2.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. Changed it to REL_12_BETA3.

@SparkQA
Copy link

SparkQA commented Aug 31, 2019

Test build #109983 has finished for PR 25588 at commit 1f8d777.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@wangyum
Copy link
Member Author

wangyum commented Aug 31, 2019

retest this please

@SparkQA
Copy link

SparkQA commented Aug 31, 2019

Test build #109984 has finished for PR 25588 at commit 1f8d777.

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

@HyukjinKwon
Copy link
Member

I am merging this to complete this porting tests.

Merged to master.

@wangyum wangyum deleted the SPARK-28000 branch September 8, 2019 01:43
PavithraRamachandran pushed a commit to PavithraRamachandran/spark that referenced this pull request Sep 15, 2019
## What changes were proposed in this pull request?

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

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

When porting the test cases, found one PostgreSQL specific features that do not exist in Spark SQL:
[SPARK-28880](https://issues.apache.org/jira/browse/SPARK-28880): ANSI SQL: Bracketed comments

## How was this patch tested?

N/A

Closes apache#25588 from wangyum/SPARK-28000.

Authored-by: Yuming Wang <yumwang@ebay.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants