Files
impala/testdata/workloads/functional-query/queries/QueryTest/overflow.test
Dan Hecht bf2e897209 IMPALA-4810: add DECIMAL test case to strict_mode tests
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
2017-03-03 01:43:42 +00:00

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
====