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

[jira] [Assigned] (IMPALA-11210) Impala can only handle lowercase schema elements of Iceberg table

     [ https://issues.apache.org/jira/browse/IMPALA-11210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zoltán Borók-Nagy reassigned IMPALA-11210:
------------------------------------------

    Assignee: Zoltán Borók-Nagy

> Impala can only handle lowercase schema elements of Iceberg table
> -----------------------------------------------------------------
>
>                 Key: IMPALA-11210
>                 URL: https://issues.apache.org/jira/browse/IMPALA-11210
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Catalog
>            Reporter: Zoltán Borók-Nagy
>            Assignee: Zoltán Borók-Nagy
>            Priority: Major
>              Labels: impala-iceberg
>
> When Impala/Hive creates a table they lowercase the schema elements.
> Impala even has precondition checks that the schema elements are lower case:
> [https://github.com/apache/impala/blob/b1c1be12f3cceed48e93eddae8b9512737e3e0d2/fe/src/main/java/org/apache/impala/catalog/Column.java#L56]
> But when an Iceberg table is created via Spark it doesn't lowercase the column names, so the metadata.json file looks like this:
> {noformat}
> ...
>   "schema" : {
>     "type" : "struct",
>     "schema-id" : 0,
>     "fields" : [ {
>       "id" : 1,
>       "name" : "Region",
>       "required" : false,
>       "type" : "string"
>     }, {
> ...
> {noformat}
> Hence when Impala tries to load such tables it runs to the above precondition check which raises an IllegalStateException.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org