You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Zoltán Borók-Nagy (Jira)" <ji...@apache.org> on 2024/09/05 14:01:00 UTC

[jira] [Created] (IMPALA-13364) Schema resolution doesn't work for migrated partitioened Iceberg tables that have complex types

Zoltán Borók-Nagy created IMPALA-13364:
------------------------------------------

             Summary: Schema resolution doesn't work for migrated partitioened Iceberg tables that have complex types
                 Key: IMPALA-13364
                 URL: https://issues.apache.org/jira/browse/IMPALA-13364
             Project: IMPALA
          Issue Type: Bug
            Reporter: Zoltán Borók-Nagy


Schema resolution doesn't work correctly for migrated partitioened Iceberg tables that have complex types.

When we face a Parquet/ORC file in an Iceberg table that doesn't have field IDs in the file metadata, we assume that it is an old data file before migration, and the schema is the very first one, hence we can mimic Iceberg's field ID generation to assign field IDs to the file schema elements.

This process didn't take the partition columns into account. This only matters when there are complex types in the table, as partition columns are always the last columns in legacy Hive tables, and field IDs are assigned via a "BFS-like" traversal. I.e. if there are only primitive types in the table we don't have any problems, but the children of complex types columns are assigned incorrectly.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)