mirror of
https://github.com/apache/impala.git
synced 2026-01-04 18:00:57 -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
47 lines
876 B
Plaintext
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
|
|
====
|