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

47 lines
876 B
Plaintext

====
---- QUERY
select tinyint_col from overflow
---- CATCH
Error converting column: 0 to TINYINT
====
---- QUERY
select smallint_col from overflow
---- CATCH
Error converting column: 1 to SMALLINT
====
---- QUERY
select int_col from overflow
---- CATCH
Error converting column: 2 to INT
====
---- QUERY
select bigint_col from overflow
---- CATCH
Error converting column: 3 to BIGINT
====
---- QUERY
select float_col from overflow
---- CATCH
Error converting column: 4 to FLOAT
====
---- QUERY
select double_col from overflow
---- CATCH
Error converting column: 5 to DOUBLE
====
---- QUERY
select decimal0_col from overflow
---- CATCH
Error converting column: 6 to DECIMAL
====
---- QUERY
select decimal1_col from overflow
---- CATCH
Error converting column: 7 to DECIMAL
====
---- QUERY
select decimal2_col from overflow
---- CATCH
Error converting column: 8 to DECIMAL
====