Skip to content

Conversation

@MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented Oct 23, 2022

What changes were proposed in this pull request?

In the PR, I propose to port the following tests suites onto checkError to check valuable error parts instead of error messages:

  • ParserUtilsSuite
  • TableSchemaParserSuite
  • InsertSuite
  • HiveDDLSuite
  • SQLQuerySuite
  • MiscFunctionsSuite

Why are the changes needed?

Migration on checkError() will make the tests independent from the text of error messages.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

By running the modified test suites:

$ build/sbt "test:testOnly *.ParserUtilsSuite"
$ build/sbt "test:testOnly *.TableSchemaParserSuite"
$ build/sbt "test:testOnly *.InsertSuite"
$ build/sbt -Phive-2.3 -Phive-thriftserver "test:testOnly *HiveDDLSuite"
$ build/sbt "test:testOnly *SQLQuerySuite"
$ build/sbt "test:testOnly org.apache.spark.sql.MiscFunctionsSuite"

@github-actions github-actions bot added the SQL label Oct 23, 2022
@MaxGekk MaxGekk changed the title [WIP][SPARK-40811][SQL][TESTS] Use checkError() to intercept ParseException: phase 2 [SPARK-40811][SQL][TESTS] Use checkError() to intercept ParseException: phase 2 Oct 24, 2022
@MaxGekk MaxGekk marked this pull request as ready for review October 24, 2022 04:39
@MaxGekk MaxGekk requested a review from cloud-fan October 24, 2022 04:39
@MaxGekk
Copy link
Member Author

MaxGekk commented Oct 24, 2022

cc @panbingkun

@MaxGekk MaxGekk requested a review from HyukjinKwon October 24, 2022 04:41
@MaxGekk
Copy link
Member Author

MaxGekk commented Oct 25, 2022

@LuciferYang @panbingkun @itholic Could you review this PR, please.

@MaxGekk
Copy link
Member Author

MaxGekk commented Oct 25, 2022

Merging to master. Thank you, @panbingkun and @cloud-fan for review.

@MaxGekk MaxGekk closed this in 139006f Oct 25, 2022
@LuciferYang
Copy link
Contributor

Late LGTM

SandishKumarHN pushed a commit to SandishKumarHN/spark that referenced this pull request Dec 12, 2022
…tion`: phase 2

### What changes were proposed in this pull request?
In the PR, I propose to port the following tests suites onto `checkError` to check valuable error parts instead of error messages:
- ParserUtilsSuite
- TableSchemaParserSuite
- InsertSuite
- HiveDDLSuite
- SQLQuerySuite
- MiscFunctionsSuite

### Why are the changes needed?
Migration on `checkError()` will make the tests independent from the text of error messages.

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

### How was this patch tested?
By running the modified test suites:
```
$ build/sbt "test:testOnly *.ParserUtilsSuite"
$ build/sbt "test:testOnly *.TableSchemaParserSuite"
$ build/sbt "test:testOnly *.InsertSuite"
$ build/sbt -Phive-2.3 -Phive-thriftserver "test:testOnly *HiveDDLSuite"
$ build/sbt "test:testOnly *SQLQuerySuite"
$ build/sbt "test:testOnly org.apache.spark.sql.MiscFunctionsSuite"
```

Closes apache#38360 from MaxGekk/parseexception-checkError-2.

Authored-by: Max Gekk <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
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.

4 participants