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-49906][SQL] Introduce and use CONFLICTING_DIRECTORY_STRUCTURES error for PartitioningUtils #48383

Conversation

vladimirg-db
Copy link
Contributor

@vladimirg-db vladimirg-db commented Oct 8, 2024

What changes were proposed in this pull request?

Improve Spark user experience by introducing a new error type: CONFLICTING_DIRECTORY_STRUCTURES for PartitioningUtils.

Why are the changes needed?

PartitioningUtils.parsePartitions(...) uses an assertion to if partitions are misconfigured. We should use a proper error type for this case.

Does this PR introduce any user-facing change?

Yes, the error will be nicer.

How was this patch tested?

Updated the existing tests.

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

copilot.vim.

@github-actions github-actions bot added the SQL label Oct 8, 2024
@HyukjinKwon
Copy link
Member

Merged to master.

himadripal pushed a commit to himadripal/spark that referenced this pull request Oct 19, 2024
… error for PartitioningUtils

### What changes were proposed in this pull request?

Improve Spark user experience by introducing a new error type: `CONFLICTING_DIRECTORY_STRUCTURES` for `PartitioningUtils`.

### Why are the changes needed?

`PartitioningUtils.parsePartitions(...)` uses an assertion to if partitions are misconfigured. We should use a proper error type for this case.

### Does this PR introduce _any_ user-facing change?

Yes, the error will be nicer.

### How was this patch tested?

Updated the existing tests.

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

`copilot.vim`.

Closes apache#48383 from vladimirg-db/vladimirg-db/introduce-conflicting-directory-structures-error.

Authored-by: Vladimir Golubev <vladimir.golubev@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
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.

3 participants