Skip to content

Commit 3b78da3

Browse files
committed
Code review
1 parent b8fbcab commit 3b78da3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/core/src/test/scala/org/apache/spark/sql/SQLCompatibilityFunctionSuite.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ class SQLCompatibilityFunctionSuite extends QueryTest with SharedSQLContext {
9292
Row("1"))
9393

9494
// Error handling: only one argument
95-
assert(intercept[AnalysisException](sql("SELECT string(1, 2)")).getMessage.contains("one arg"))
95+
val errorMsg = intercept[AnalysisException](sql("SELECT string(1, 2)")).getMessage
96+
assert(errorMsg.contains("Function string accepts only one argument"))
9697
}
9798
}

0 commit comments

Comments
 (0)