File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis
core/src/test/scala/org/apache/spark/sql Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ trait CheckAnalysis extends PredicateHelper {
57
57
case o : Int => failAnalysis(
58
58
s " number_rows in limit clause must be equal to or greater than 0. number_rows: $o" )
59
59
case o => failAnalysis(
60
- s """ number_rows in limit clause cannot be cast to integer:\" $o\". """ )
60
+ s """ number_rows in limit clause must be integer. number_rows :\" $o\". """ )
61
61
}
62
62
}
63
63
Original file line number Diff line number Diff line change @@ -684,12 +684,12 @@ class SQLQuerySuite extends QueryTest with SharedSQLContext {
684
684
var e = intercept[AnalysisException ] {
685
685
sql(" SELECT * FROM testData LIMIT true" )
686
686
}.getMessage
687
- assert(e.contains(" number_rows in limit clause cannot be cast to integer:\" true\" " ))
687
+ assert(e.contains(" number_rows in limit clause must be integer. number_rows :\" true\" " ))
688
688
689
689
e = intercept[AnalysisException ] {
690
690
sql(" SELECT * FROM testData LIMIT 'a'" )
691
691
}.getMessage
692
- assert(e.contains(" number_rows in limit clause cannot be cast to integer:\" a\" " ))
692
+ assert(e.contains(" number_rows in limit clause must be integer. number_rows :\" a\" " ))
693
693
}
694
694
695
695
test(" negative in LIMIT or TABLESAMPLE" ) {
You can’t perform that action at this time.
0 commit comments