Skip to content

Conversation

@ganeshashree
Copy link

What changes were proposed in this pull request?

Add detailed error message for table metadata corruption to ease debugging

Why are the changes needed?

Currently, no meaningful error message appears when the table metadata is corrupted due to a mismatch between the partition column names in the table schema and the declared partition columns. To facilitate debugging, a detailed error message should be shown in this situation.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Added unit test.

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

No

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in 27a0d27 Oct 29, 2025
Yicong-Huang pushed a commit to Yicong-Huang/spark that referenced this pull request Oct 30, 2025
…uption to ease debugging

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

Add detailed error message for table metadata corruption to ease debugging

### Why are the changes needed?

Currently, no meaningful error message appears when the table metadata is corrupted due to a mismatch between the partition column names in the table schema and the declared partition columns. To facilitate debugging, a detailed error message should be shown in this situation.

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

No

### How was this patch tested?

Added unit test.

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

No

Closes apache#52731 from ganeshashree/SPARK-54029.

Authored-by: Ganesha S <ganesha.s@databricks.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.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.

3 participants