Skip to content

Conversation

@siying
Copy link
Contributor

@siying siying commented Oct 21, 2025

What changes were proposed in this pull request?

When an option of AvroOptions requires boolean value, but a value that cannot be casted to boolean is passed in, classify the error.

Why are the changes needed?

The error should be classified to have better user experience.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Added a unit test.

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

No.

@anishshri-db
Copy link
Contributor

Will merge once CI is green

huangxiaopingRD pushed a commit to huangxiaopingRD/spark that referenced this pull request Nov 25, 2025
…ailure

### What changes were proposed in this pull request?
When an option of AvroOptions requires boolean value, but a value that cannot be casted to boolean is passed in, classify the error.

### Why are the changes needed?
The error should be classified to have better user experience.

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

### How was this patch tested?
Added a unit test.

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

Closes apache#52686 from siying/avro_boolean_option.

Authored-by: Siying Dong <[email protected]>
Signed-off-by: Anish Shrigondekar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants