-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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-29108][SQL][TESTS][FOLLOWUP] Comment out no use test case and add 'insert into' statement of window.sql (Part 2) #27439
Conversation
Test build #117756 has finished for PR 27439 at commit
|
sql/core/src/test/resources/sql-tests/inputs/postgreSQL/window_part2.sql
Show resolved
Hide resolved
sql/core/src/test/resources/sql-tests/inputs/postgreSQL/window_part2.sql
Show resolved
Hide resolved
sql/core/src/test/resources/sql-tests/inputs/postgreSQL/window_part2.sql
Outdated
Show resolved
Hide resolved
BTW, @beliefer, don't forget to update PR description and title accordingly. |
Thanks for your reminder. |
Test build #117876 has finished for PR 27439 at commit
|
retest this please |
Test build #117908 has finished for PR 27439 at commit
|
Test build #117883 has finished for PR 27439 at commit
|
retest this please |
Test build #117921 has finished for PR 27439 at commit
|
retest this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, but I'm -1 for this change, @beliefer , @HyukjinKwon , and @HyukjinKwon .
If we start to support more queries in this file, we need to bring them back.
Let's not decide what is not required at this stage.
Test build #117935 has finished for PR 27439 at commit
|
sql/core/src/test/resources/sql-tests/results/postgreSQL/window_part2.sql.out
Show resolved
Hide resolved
@dongjoon-hyun, the flip side also works. For the time we don't support, we can save one INSERT and CREATE operation in test base until that point. I don't think keeping unused data or codes in test cases is right. We should bring it back only when it's used. (e.g., we should remove unused codes rather then keeping it just in case it's used in the future). Just to be clear, is this inconsistent with other ported tests in PostgreSQL? If that's the case, let's just revert back to revive |
@HyukjinKwon .
|
I'm expecting more PRs on |
Thanks @dongjoon-hyun. @beliefer, do you plan to support these soon? If that's the case let's bring |
I think some feature will be supported, the other ones will not. |
If you plan to create a PRs to support them in this file, let's just don't comment |
sql/core/src/test/resources/sql-tests/inputs/postgreSQL/window_part2.sql
Outdated
Show resolved
Hide resolved
LGTM otherwise. Sorry for a bit of back and forth @beliefer but mind updating PR description back as well? |
OK. |
Test build #117959 has finished for PR 27439 at commit
|
Merged to master, and branch-3.0 to match it with JIRA's |
…add 'insert into' statement of window.sql (Part 2) ### What changes were proposed in this pull request? When I running the `window_part2.sql` tests find it lack insert sql. Therefore, the output is empty. I checked the postgresql and reference https://github.com/postgres/postgres/blob/master/src/test/regress/sql/window.sql Although `window_part1.sql` and `window_part3.sql` exists the insert sql, I think should also add it into `window_part2.sql`. Because only one case reference the table `empsalary` and it throws `AnalysisException`. ``` -- !query select last(salary) over(order by salary range between 1000 preceding and 1000 following), lag(salary) over(order by salary range between 1000 preceding and 1000 following), salary from empsalary -- !query schema struct<> -- !query output org.apache.spark.sql.AnalysisException Window Frame specifiedwindowframe(RangeFrame, -1000, 1000) must match the required frame specifiedwindowframe(RowFrame, -1, -1); ``` So we should do four work: 1. comment out the only one case and create a new ticket. 2. Add `INSERT INTO empsalary`. Note: window_part4.sql not use the table `empsalary`. ### Why are the changes needed? Supplementary test data. ### Does this PR introduce any user-facing change? No ### How was this patch tested? New test case Closes #27439 from beliefer/add-insert-to-window. Authored-by: beliefer <beliefer@163.com> Signed-off-by: HyukjinKwon <gurwls223@apache.org>
@HyukjinKwon @dongjoon-hyun Thanks for your work. |
Test build #117963 has finished for PR 27439 at commit
|
…add 'insert into' statement of window.sql (Part 2) ### What changes were proposed in this pull request? When I running the `window_part2.sql` tests find it lack insert sql. Therefore, the output is empty. I checked the postgresql and reference https://github.com/postgres/postgres/blob/master/src/test/regress/sql/window.sql Although `window_part1.sql` and `window_part3.sql` exists the insert sql, I think should also add it into `window_part2.sql`. Because only one case reference the table `empsalary` and it throws `AnalysisException`. ``` -- !query select last(salary) over(order by salary range between 1000 preceding and 1000 following), lag(salary) over(order by salary range between 1000 preceding and 1000 following), salary from empsalary -- !query schema struct<> -- !query output org.apache.spark.sql.AnalysisException Window Frame specifiedwindowframe(RangeFrame, -1000, 1000) must match the required frame specifiedwindowframe(RowFrame, -1, -1); ``` So we should do four work: 1. comment out the only one case and create a new ticket. 2. Add `INSERT INTO empsalary`. Note: window_part4.sql not use the table `empsalary`. ### Why are the changes needed? Supplementary test data. ### Does this PR introduce any user-facing change? No ### How was this patch tested? New test case Closes apache#27439 from beliefer/add-insert-to-window. Authored-by: beliefer <beliefer@163.com> Signed-off-by: HyukjinKwon <gurwls223@apache.org>
What changes were proposed in this pull request?
When I running the
window_part2.sql
tests find it lack insert sql. Therefore, the output is empty.I checked the postgresql and reference https://github.com/postgres/postgres/blob/master/src/test/regress/sql/window.sql
Although
window_part1.sql
andwindow_part3.sql
exists the insert sql, I think should also add it intowindow_part2.sql
.Because only one case reference the table
empsalary
and it throwsAnalysisException
.So we should do four work:
INSERT INTO empsalary
.Note: window_part4.sql not use the table
empsalary
.Why are the changes needed?
Supplementary test data.
Does this PR introduce any user-facing change?
No
How was this patch tested?
New test case