mirror of
https://github.com/apache/impala.git
synced 2026-01-07 18:02:33 -05:00
IMPALA-3812: Fix error message for unsupported types
Before this patch an unclear error message was returned if DATE or DATETIME appeared in the select list after a star expansion. This was because DATE and DATETIME PrimitiveType was serialized as INVALID_TYPE. This is fixed by serializing correctly. Change-Id: I9019b4bfd219f94e554c795befd3ff5e39706ea9 Reviewed-on: http://gerrit.cloudera.org:8080/4859 Reviewed-by: Alex Behm <alex.behm@cloudera.com> Tested-by: Internal Jenkins
This commit is contained in:
committed by
Internal Jenkins
parent
0ab3d7691e
commit
eb8120d218
@@ -135,4 +135,24 @@ SELECT count(*) from functional.alltypes group by bool_col having bool_col
|
||||
3650
|
||||
---- TYPES
|
||||
bigint
|
||||
====
|
||||
====
|
||||
---- QUERY
|
||||
# IMPALA-3812: Verfiy that the correct error message is shown when the star expansion adds
|
||||
# the DATE unsupported type to the select list.
|
||||
select * from functional.unsupported_types
|
||||
---- CATCH
|
||||
Unsupported type 'DATE' in 'functional.unsupported_types.date_col'.
|
||||
====
|
||||
---- QUERY
|
||||
# IMPALA-3812: Verfiy that DATE type is displayed correctly in the describe table.
|
||||
describe functional.unsupported_types
|
||||
---- RESULTS
|
||||
'int_col','int',''
|
||||
'dec_col','decimal(10,0)',''
|
||||
'date_col','date',''
|
||||
'str_col','string',''
|
||||
'bin_col','binary',''
|
||||
'bigint_col','bigint',''
|
||||
---- TYPES
|
||||
STRING, STRING, STRING
|
||||
====
|
||||
|
||||
Reference in New Issue
Block a user