Skip to content
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

[SPARK-49866][SQL] Improve the error message for describe table with partition columns #48338

Conversation

mihailoale-db
Copy link
Contributor

@mihailoale-db mihailoale-db commented Oct 3, 2024

What changes were proposed in this pull request?

Provide more user facing error when partition column name can't be found in the table schema.

Why are the changes needed?

There's an issue where partition column sometimes doesn't match any from the table schema. When that happens we throw an assertion error which is not user friendly. Because of that we introduced new QueryExecutionError in order to make it more user facing.

Does this PR introduce any user-facing change?

Yes, users will get more user friendly error message.

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

No

@github-actions github-actions bot added the SQL label Oct 3, 2024
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.

In this ticket https://databricks.atlassian.net/browse/ES-1122552 we

@mihailoale-db Please, don't refer to internal Databricks tickets.

@mihailoale-db
Copy link
Contributor Author

In this ticket https://databricks.atlassian.net/browse/ES-1122552 we

@mihailoale-db Please, don't refer to internal Databricks tickets.

Should we remove this comment?

@MaxGekk
Copy link
Member

MaxGekk commented Oct 4, 2024

Should we remove this comment?

Yes, please, do that.

@MaxGekk MaxGekk changed the title [SPARK-49866] [SQL] Improve the error message for describe table with partition columns [SPARK-49866][SQL] Improve the error message for describe table with partition columns Oct 4, 2024
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.

@mihailoale-db
Copy link
Contributor Author

@MaxGekk All the CIs passed except the Kubernetes one.

@MaxGekk
Copy link
Member

MaxGekk commented Oct 5, 2024

I believe the test failure Run / Run Spark on Kubernetes Integration test is not related to the changes.

+1, LGTM. Merging to master.
Thank you, @mihailoale-db.

@MaxGekk MaxGekk closed this in 37f2966 Oct 5, 2024
himadripal pushed a commit to himadripal/spark that referenced this pull request Oct 19, 2024
…partition columns

### What changes were proposed in this pull request?
Provide more user facing error when partition column name can't be found in the table schema.

### Why are the changes needed?
There's an issue where partition column sometimes doesn't match any from the table schema. When that happens we throw an assertion error which is not user friendly. Because of that we introduced new `QueryExecutionError` in order to make it more user facing.

### Does this PR introduce _any_ user-facing change?
Yes, users will get more user friendly error message.

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

Closes apache#48338 from mihailoale-db/mihailoale-db/fixdescribepartitioningmessage.

Authored-by: Mihailo Aleksic <mihailo.aleksic@databricks.com>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
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.

2 participants