mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
The string parsing code already errors if the decimal column either overflows or underflows (i.e. loses scale). Let's just add a test case. Change-Id: Idd66c0fb5a4d201919d39f73dea08b87339d6469 Reviewed-on: http://gerrit.cloudera.org:8080/6150 Reviewed-by: Dan Hecht <dhecht@cloudera.com> Tested-by: Impala Public Jenkins
14 lines
472 B
Plaintext
14 lines
472 B
Plaintext
====
|
|
---- QUERY
|
|
# Tests overflow. Note that decimal columns produce error on overflow
|
|
# even without --strict_mode, so we don't select the decimal columns in
|
|
# this test case.
|
|
select tinyint_col, smallint_col, int_col, bigint_col, float_col, double_col from Overflow
|
|
---- TYPES
|
|
tinyint, smallint, int, bigint, float, double
|
|
---- RESULTS
|
|
-128,-32768,-2147483648,-9223372036854775808,-Infinity,-Infinity
|
|
1,2,3,4,5.5,6.6
|
|
127,32767,2147483647,9223372036854775807,inf,inf
|
|
====
|