beliefer commented on code in PR #41476:
URL: https://github.com/apache/spark/pull/41476#discussion_r1233999456
##########
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/AnalysisErrorSuite.scala:
##########
@@ -781,11 +781,43 @@ class AnalysisErrorSuite extends AnalysisTest {
test("error test for self-join") {
val join = Join(testRelation, testRelation, Cross, None, JoinHint.NONE)
- val error = intercept[AnalysisException] {
+ val error = intercept[SparkException] {
SimpleAnalyzer.checkAnalysis(join)
}
- assert(error.message.contains("Failure when resolving conflicting
references in Join"))
- assert(error.message.contains("Conflicting attributes"))
+ assert(error.getMessage.contains("Failure when resolving conflicting
references in Join"))
Review Comment:
I see.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]