mirror of
https://github.com/apache/impala.git
synced 2026-02-02 15:00:38 -05:00
Enable setting 'write.format.default' to a different file format than what the table already contains. Before IMPALA-10610 Iceberg tables with mixed-format data files were not supported. We used 'write.format.default' to determine the file format of the table, which was only a temporary workaround. Because of this we did not allow changing this table property if the table already contained different table formats. E.g. we did not allow modifying 'write.format.default' to PARQUET if the table already contained ORC files, because it would have made the table unreadable for Impala. Since IMPALA-10610 'write.format.default' is not used to determine the Iceberg table's format anymore, so we can allow changing it. This table property change is not synchronized between HMS and Iceberg metadata files in case of true external Hive Catalog tables. See IMPALA-11710. Testing: - E2E test in iceberg-alter.test Change-Id: I22d0a8a18fce99015fcfe1fd15cb4a4d4c2deaec Reviewed-on: http://gerrit.cloudera.org:8080/19221 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>