Skip to content

Conversation

@harshmotw-db
Copy link
Contributor

What changes were proposed in this pull request?

This test improves a unit test case where json strings with duplicate keys are prohibited by checking the cause of the exception instead of just the root exception.

Why are the changes needed?

Earlier, the test only checked the top error class but not the cause of the error which should be VARIANT_DUPLICATE_KEY.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

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

NA

@github-actions github-actions bot added the SQL label Oct 14, 2024
@harshmotw-db harshmotw-db marked this pull request as ready for review October 14, 2024 21:53
@MaxGekk MaxGekk changed the title [SPARK-49451][FOLLOW-UP] Improve duplicate key exception test [SPARK-49451][SQL][FOLLOW-UP] Improve duplicate key exception test Oct 15, 2024
@MaxGekk
Copy link
Member

MaxGekk commented Oct 15, 2024

+1, LGTM. Merging to master.
Thank you, @harshmotw-db and @cloud-fan for review.

@MaxGekk MaxGekk closed this in c3176a7 Oct 15, 2024
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