-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-30093][SQL] Improve error message for creating view #26731
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
|
cc @gatorsmile |
| // temporary views are only stored in the session catalog | ||
| throw new AnalysisException(s"Not allowed to create a permanent view $name by " + | ||
| s"referencing a temporary view $ident") | ||
| s"referencing a temporary view $ident (use TEMPORARY keyword)") |
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.
nit: ... referencing a temporary view $ident. Please create a temp view instead by CREATE TEMP VIEW
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.
Done.
|
Jenkins, test this please. |
|
cc @cloud-fan |
|
ok to test |
|
Test build #114858 has finished for PR 26731 at commit
|
|
Test build #114865 has finished for PR 26731 at commit
|
|
cc @cloud-fan |
|
thanks, merging to master! |
### What changes were proposed in this pull request? Improved error message while creating views. ### Why are the changes needed? Error message should suggest user to use TEMPORARY keyword while creating permanent view referred by temporary view. apache#26317 (comment) ### Does this PR introduce any user-facing change? No ### How was this patch tested? Updated test case. Closes apache#26731 from amanomer/imp_err_msg. Authored-by: Aman Omer <[email protected]> Signed-off-by: Wenchen Fan <[email protected]>
What changes were proposed in this pull request?
Improved error message while creating views.
Why are the changes needed?
Error message should suggest user to use TEMPORARY keyword while creating permanent view referred by temporary view.
#26317 (comment)
Does this PR introduce any user-facing change?
No
How was this patch tested?
Updated test case.