mirror of
https://github.com/apache/impala.git
synced 2025-12-25 02:03:09 -05:00
Implements read path for the date type in ORC scanner. The internal representation of a date is an int32 meaning the number of days since Unix epoch using proleptic Gregorian calendar. Similarly to the Parquet implementation (IMPALA-7370) this representation introduces an interoperability issue between Impala and older versions of Hive (before 3.1). For more details see the commit message of the mentioned Parquet implementation. Change-Id: I672a2cdd2452a46b676e0e36942fd310f55c4956 Reviewed-on: http://gerrit.cloudera.org:8080/14982 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
18 lines
405 B
Plaintext
18 lines
405 B
Plaintext
====
|
|
---- QUERY
|
|
# Query an ORC table created by Hive 2.1.1 containig the following dates:
|
|
# 1582-10-04, 1582-10-05, 1582-10-06, 1582-10-15, 1582-10-16.
|
|
# Impala will incorrectly read back the dates that precede the introduction of Gregorian
|
|
# calendar (1582-10-15).
|
|
SELECT * FROM $DATABASE.hive2_pre_gregorian_orc;
|
|
---- TYPES
|
|
DATE
|
|
---- RESULTS
|
|
1582-10-14
|
|
1582-10-15
|
|
1582-10-16
|
|
1582-10-15
|
|
1582-10-16
|
|
====
|
|
|