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

Denys Kuzmenko updated HIVE-28886:
----------------------------------
    Summary: CalcitePlanner throws NullPointerException when column name case 
in ColumnStatisticsObj differs from the table schema  (was: 
NullPointerException during read when Puffin holds statistics with column names 
in a different registry than defined in the table schema)

> CalcitePlanner throws NullPointerException when column name case in 
> ColumnStatisticsObj differs from the table schema
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-28886
>                 URL: https://issues.apache.org/jira/browse/HIVE-28886
>             Project: Hive
>          Issue Type: Bug
>          Components: Iceberg integration
>    Affects Versions: 4.0.1
>            Reporter: Denys Kuzmenko
>            Assignee: Denys Kuzmenko
>            Priority: Major
>              Labels: pull-request-available
>
> {code}
> create external table ice01(a int, b string, c int) stored by iceberg
>   tblproperties('format-version'='2');
> insert into ice01 values (1, 'a', 1), (2, 'b', 2), (3, 'c', 3), (4, 'd', 4), 
> (5, 'e', 5);    
> analyze table ice01 compute statistics for columns A, C;
> select * from ice01;
> java.lang.NullPointerException
>       at 
> org.apache.hadoop.hive.ql.optimizer.calcite.RelOptHiveTable.updateColStats(RelOptHiveTable.java:673)
>       at 
> org.apache.hadoop.hive.ql.optimizer.calcite.RelOptHiveTable.getColStat(RelOptHiveTable.java:740)
> {code}



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

Reply via email to