Skip to content

Commit 874e17b

Browse files
committed
Address review comments
1 parent cd93715 commit 874e17b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/ExprUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ object ExprUtils {
3232
exp.eval() match {
3333
case s: UTF8String if s != null => DataType.fromDDL(s.toString)
3434
case _ => throw new AnalysisException(
35-
s"The expression '${exp.sql}' must be evaluated to a valid string.")
35+
s"The expression '${exp.sql}' is not a valid schema string.")
3636
}
3737
} else {
3838
throw new AnalysisException(

sql/core/src/test/resources/sql-tests/results/csv-functions.sql.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ select from_csv('1', 1)
2424
struct<>
2525
-- !query output
2626
org.apache.spark.sql.AnalysisException
27-
The expression '1' must be evaluated to a valid string.;; line 1 pos 7
27+
The expression '1' is not a valid schema string.;; line 1 pos 7
2828

2929

3030
-- !query

sql/core/src/test/resources/sql-tests/results/json-functions.sql.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ select from_json('{"a":1}', 1)
115115
struct<>
116116
-- !query output
117117
org.apache.spark.sql.AnalysisException
118-
The expression '1' must be evaluated to a valid string.;; line 1 pos 7
118+
The expression '1' is not a valid schema string.;; line 1 pos 7
119119

120120

121121
-- !query

0 commit comments

Comments
 (0)