Files
impala/testdata/workloads/functional-query/queries/QueryTest/strict-mode.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

32 lines
1.2 KiB
Plaintext

====
---- QUERY
select * from overflow
---- ERRORS
Error converting column: 0 to TINYINT
Error converting column: 1 to SMALLINT
Error converting column: 2 to INT
Error converting column: 3 to BIGINT
Error converting column: 4 to FLOAT
Error converting column: 5 to DOUBLE
Error converting column: 6 to DECIMAL(13,4)
Error converting column: 7 to DECIMAL(38,0)
Error converting column: 8 to DECIMAL(38,38)
row_regex: .*Error parsing row: file: $NAMENODE/.* before offset: \d+
Error converting column: 0 to TINYINT
Error converting column: 1 to SMALLINT
Error converting column: 2 to INT
Error converting column: 3 to BIGINT
Error converting column: 4 to FLOAT
Error converting column: 5 to DOUBLE
Error converting column: 6 to DECIMAL(13,4)
Error converting column: 7 to DECIMAL(38,0)
Error converting column: 8 to DECIMAL(38,38)
row_regex: .*Error parsing row: file: $NAMENODE/.* before offset: \d+
---- RESULTS
1,2,3,4,5.5,6.6,123456789.1234,99999999999999999999999999999999999999,0.00000000000000000000000000000000000001
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
---- TYPES
tinyint, smallint, int, bigint, float, double, decimal, decimal, decimal
====