mirror of
https://github.com/apache/impala.git
synced 2026-01-25 09:01:08 -05:00
In this test there is no need to check for "Error parsing row" since the "Error converting column" is enought to be sure we are no longer able to read dateless timestamps. Change-Id: Ia97490288dae81561969d260739a07ec42571f48 Reviewed-on: http://gerrit.cloudera.org:8080/16334 Reviewed-by: Zoltan Borok-Nagy <boroknagyz@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
29 lines
627 B
Plaintext
29 lines
627 B
Plaintext
====
|
|
---- QUERY
|
|
SET abort_on_error=1;
|
|
SELECT * FROM $DATABASE.timestamp_text_table;
|
|
---- TYPES
|
|
TIMESTAMP
|
|
---- CATCH
|
|
Error converting column: 0 to TIMESTAMP
|
|
====
|
|
---- QUERY
|
|
SET abort_on_error=0;
|
|
SELECT * FROM $DATABASE.timestamp_text_table;
|
|
---- TYPES
|
|
TIMESTAMP
|
|
---- RESULTS
|
|
1996-04-22 10:00:00.432100000
|
|
1996-04-22 10:00:00.432100000
|
|
1996-04-22 10:00:00
|
|
1996-04-22 10:00:00
|
|
1996-04-22 00:00:00
|
|
NULL
|
|
NULL
|
|
---- ERRORS
|
|
Error converting column: 0 to TIMESTAMP
|
|
Error converting column: 0 to TIMESTAMP
|
|
Error parsing row: file: __HDFS_FILENAME__, before offset: 148
|
|
Error parsing row: file: __HDFS_FILENAME__, before offset: 148
|
|
====
|