Skip to content

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