Skip to content

Conversation

@vladimirg-db
Copy link
Contributor

@vladimirg-db vladimirg-db commented Sep 16, 2024

What changes were proposed in this pull request?

Introduce a new SCALAR_SUBQUERY_IN_VALUES error, 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?

  • New unit test
  • Existing unit tests

Was this patch authored or co-authored using generative AI tooling?

No

@github-actions github-actions bot added the SQL label Sep 16, 2024
@vladimirg-db vladimirg-db force-pushed the vladimirg-db/introduce-user-facing-exception-for-inline-tables-with-scalar-subqueries branch from fd9a01c to fdb33f8 Compare September 16, 2024 08:57
@vladimirg-db vladimirg-db marked this pull request as ready for review September 16, 2024 09:00
@vladimirg-db vladimirg-db force-pushed the vladimirg-db/introduce-user-facing-exception-for-inline-tables-with-scalar-subqueries branch from fdb33f8 to c9721d9 Compare September 16, 2024 09:10
@vladimirg-db vladimirg-db force-pushed the vladimirg-db/introduce-user-facing-exception-for-inline-tables-with-scalar-subqueries branch 2 times, most recently from fc604fc to 4546834 Compare September 16, 2024 14:00
@vladimirg-db
Copy link
Contributor Author

vladimirg-db commented Sep 16, 2024

@dtenedor do you think we also need a scalarSubquery.sql or toPrettySql in the error message, or the way it's done now is enough?

@MaxGekk
Copy link
Member

MaxGekk commented Sep 16, 2024

... in the error message, or the way it's done now is enough?

I think if you provided a query context (and you did that), that's enough.

@vladimirg-db vladimirg-db force-pushed the vladimirg-db/introduce-user-facing-exception-for-inline-tables-with-scalar-subqueries branch from 4546834 to fa1ca9e Compare September 16, 2024 15:24
@vladimirg-db
Copy link
Contributor Author

@MaxGekk all done, thanks!

Copy link
Member

@MaxGekk MaxGekk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting for CI.

@MaxGekk
Copy link
Member

MaxGekk commented Sep 16, 2024

@vladimirg-db Please, update PR's description according to your changes.

@vladimirg-db vladimirg-db force-pushed the vladimirg-db/introduce-user-facing-exception-for-inline-tables-with-scalar-subqueries branch from fa1ca9e to c206bb9 Compare September 16, 2024 19:48
@MaxGekk
Copy link
Member

MaxGekk commented Sep 17, 2024

+1, LGTM. Merging to master.
Thank you, @vladimirg-db and @dtenedor @cloud-fan for review.

@MaxGekk MaxGekk closed this in db84681 Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants