Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-49451][SQL][FOLLOW-UP] Improve duplicate key exception test
### 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>
- Loading branch information