-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-20916][SQL] Improve error message for unaliased subqueries in FROM clause #18141
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
Conversation
|
Better to add tests in |
|
@maropu Sure. Thanks. |
|
Test build #77521 has started for PR 18141 at commit |
|
Test build #77517 has finished for PR 18141 at commit
|
| @@ -0,0 +1,14 @@ | |||
| -- Aliased subqueries in FROM clause | |||
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.
Could you move the test case sql-tests/inputs/aliased-subquery-in-from.sql to sql-tests/inputs/subquery/subquery-in-from.sql?
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.
Sure.
gatorsmile
left a comment
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.
LGTM except one comment
|
Test build #77524 has started for PR 18141 at commit |
|
retest this please. |
|
Test build #77525 has finished for PR 18141 at commit
|
|
Test build #77528 has finished for PR 18141 at commit
|
|
LGTM, merging to master! |
What changes were proposed in this pull request?
We changed the parser to reject unaliased subqueries in the FROM clause in SPARK-20690. However, the error message that we now give isn't very helpful:
We should modify the parser to throw a more clear error for such queries:
How was this patch tested?
Modified existing tests to reflect this change.