-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-49659][SQL] Add a nice user-facing error for scalar subqueries inside VALUES clause #48118
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
fd9a01c to
fdb33f8
Compare
fdb33f8 to
c9721d9
Compare
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/CheckAnalysis.scala
Outdated
Show resolved
Hide resolved
fc604fc to
4546834
Compare
|
@dtenedor do you think we also need a |
I think if you provided a query context (and you did that), that's enough. |
sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
Outdated
Show resolved
Hide resolved
4546834 to
fa1ca9e
Compare
|
@MaxGekk all done, thanks! |
MaxGekk
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.
Waiting for CI.
|
@vladimirg-db Please, update PR's description according to your changes. |
fa1ca9e to
c206bb9
Compare
|
+1, LGTM. Merging to master. |
What changes were proposed in this pull request?
Introduce a new
SCALAR_SUBQUERY_IN_VALUESerror, since we don't support scalar subqueries in the VALUES clause for now.Why are the changes needed?
To make Spark user experience nicer.
Does this PR introduce any user-facing change?
Yes, the exception type/message will be more descriptive
How was this patch tested?
Was this patch authored or co-authored using generative AI tooling?
No