[SPARK-20916][SQL] Improve error message for unaliased subqueries in FROM clause#18141
Closed
viirya wants to merge 3 commits intoapache:masterfrom
Closed
[SPARK-20916][SQL] Improve error message for unaliased subqueries in FROM clause#18141viirya wants to merge 3 commits intoapache:masterfrom
viirya wants to merge 3 commits intoapache:masterfrom
Conversation
Member
Author
Member
|
Better to add tests in |
Member
Author
|
@maropu Sure. Thanks. |
|
Test build #77521 has started for PR 18141 at commit |
|
Test build #77517 has finished for PR 18141 at commit
|
gatorsmile
reviewed
May 30, 2017
| @@ -0,0 +1,14 @@ | |||
| -- Aliased subqueries in FROM clause | |||
Member
There was a problem hiding this comment.
Could you move the test case sql-tests/inputs/aliased-subquery-in-from.sql to sql-tests/inputs/subquery/subquery-in-from.sql?
|
Test build #77524 has started for PR 18141 at commit |
Member
Author
|
retest this please. |
|
Test build #77525 has finished for PR 18141 at commit
|
|
Test build #77528 has finished for PR 18141 at commit
|
Contributor
|
LGTM, merging to master! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.