aboutsummaryrefslogtreecommitdiff
path: root/sql/core/src/test/resources
diff options
context:
space:
mode:
authorSrinath Shankar <srinath@databricks.com>2016-08-19 19:54:26 -0700
committerReynold Xin <rxin@databricks.com>2016-08-19 19:54:26 -0700
commitba1737c21aab91ff3f1a1737aa2d6b07575e36a3 (patch)
treeda97f012db4cfa31fe9bd1b07016ba460c9bd55c /sql/core/src/test/resources
parenta117afa7c2d94f943106542ec53d74ba2b5f1058 (diff)
downloadspark-ba1737c21aab91ff3f1a1737aa2d6b07575e36a3.tar.gz
spark-ba1737c21aab91ff3f1a1737aa2d6b07575e36a3.tar.bz2
spark-ba1737c21aab91ff3f1a1737aa2d6b07575e36a3.zip
[SPARK-17158][SQL] Change error message for out of range numeric literals
## What changes were proposed in this pull request? Modifies error message for numeric literals to Numeric literal <literal> does not fit in range [min, max] for type <T> ## How was this patch tested? Fixed up the error messages for literals.sql in SqlQueryTestSuite and re-ran via sbt. Also fixed up error messages in ExpressionParserSuite Author: Srinath Shankar <srinath@databricks.com> Closes #14721 from srinathshankar/sc4296.
Diffstat (limited to 'sql/core/src/test/resources')
-rw-r--r--sql/core/src/test/resources/sql-tests/results/literals.sql.out6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/core/src/test/resources/sql-tests/results/literals.sql.out b/sql/core/src/test/resources/sql-tests/results/literals.sql.out
index b964a6fc09..67e6d78dfb 100644
--- a/sql/core/src/test/resources/sql-tests/results/literals.sql.out
+++ b/sql/core/src/test/resources/sql-tests/results/literals.sql.out
@@ -41,7 +41,7 @@ struct<>
-- !query 4 output
org.apache.spark.sql.catalyst.parser.ParseException
-Value out of range. Value:"128" Radix:10(line 1, pos 7)
+Numeric literal 128 does not fit in range [-128, 127] for type tinyint(line 1, pos 7)
== SQL ==
select 128Y
@@ -71,7 +71,7 @@ struct<>
-- !query 7 output
org.apache.spark.sql.catalyst.parser.ParseException
-Value out of range. Value:"32768" Radix:10(line 1, pos 7)
+Numeric literal 32768 does not fit in range [-32768, 32767] for type smallint(line 1, pos 7)
== SQL ==
select 32768S
@@ -101,7 +101,7 @@ struct<>
-- !query 10 output
org.apache.spark.sql.catalyst.parser.ParseException
-For input string: "9223372036854775808"(line 1, pos 7)
+Numeric literal 9223372036854775808 does not fit in range [-9223372036854775808, 9223372036854775807] for type bigint(line 1, pos 7)
== SQL ==
select 9223372036854775808L