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-49451][SQL][FOLLOW-UP] Improve duplicate key exception test #48464

Closed

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
himadripal pushed a commit to himadripal/spark that referenced this pull request Oct 19, 2024
### 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

Closes apache#48464 from harshmotw-db/harshmotw-db/minor_test_fix.

Authored-by: Harsh Motwani <harsh.motwani@databricks.com>
Signed-off-by: Max Gekk <max.gekk@gmail.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