mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
DATE fields in Iceberg metadata tables were NULLed out before this change. This change adds support for displaying their actual values. DATE fields are stored as 32-bit integers (storing the number of days since the epoch), so they are handled similarly to INTS, but if they are out of the valid DATE range, their value is set to DateValue::INVALID_DAYS_SINCE_EPOCH. Tests: - added a test query and adjusted existing ones in iceberg-metadata-tables.test Change-Id: Ib2223385f90555b1f9b22f3e27fa0e2489c3b9b5 Reviewed-on: http://gerrit.cloudera.org:8080/21292 Reviewed-by: Csaba Ringhofer <csringhofer@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>