Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-39935][SQL][TESTS] Switch
validateParsingError()
onto `check…
…Error()` ### What changes were proposed in this pull request? 1. Re-implemented `validateParsingError()` using `checkError()`. 2. Removed `checkParsingError()` and replaced by `checkError()`. ### Why are the changes needed? 1. To prepare test infra for testing of query contexts. 3. To check message parameters instead of entire text message. This PR is some kind of follow up of #36693 and #37322. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? By running the modified test suites: ``` $ build/sbt -Phive -Phive-thriftserver "test:testOnly *TruncateTableParserSuite" $ build/sbt -Phive-2.3 -Phive-thriftserver "test:testOnly *ShowPartitionsParserSuite" $ build/sbt "sql/testOnly *QueryParsingErrorsSuite" ``` Closes #37363 from MaxGekk/checkParsingError-to-checkError. Authored-by: Max Gekk <max.gekk@gmail.com> Signed-off-by: Max Gekk <max.gekk@gmail.com>
- Loading branch information