[ 
https://issues.apache.org/jira/browse/IMPALA-12704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17806996#comment-17806996
 ] 

ASF subversion and git services commented on IMPALA-12704:
----------------------------------------------------------

Commit ad2e7ff6bce6048ac1ee58c9bfc911fd392d655c in impala's branch 
refs/heads/master from Eyizoha
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=ad2e7ff6b ]

IMPALA-12704: Fix NPE when quering empty iceberg table's metadata

Currently, When querying some metadata tables of an empty iceberg table,
a null pointer exception occurs. This patch fixes the issue and adds
corresponding test cases in test_metadata_tables.

Testing:
 - Added E2E test to cover this case

Change-Id: I6b4d4fb81a45214045b8809a4bdd910a1f1f3843
Reviewed-on: http://gerrit.cloudera.org:8080/20890
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


> NullPointerException occurs  when quering metadata of empty Iceberg table
> -------------------------------------------------------------------------
>
>                 Key: IMPALA-12704
>                 URL: https://issues.apache.org/jira/browse/IMPALA-12704
>             Project: IMPALA
>          Issue Type: Bug
>          Components: fe
>            Reporter: Ye Zihao
>            Assignee: Ye Zihao
>            Priority: Critical
>
> {code:sql}
> [4620ee0acf3b:21050] default> create table empty_ice_tbl (id int) stored as 
> iceberg;
> Query: create table empty_ice_tbl (id int) stored as iceberg
> +-------------------------+
> | summary                 |
> +-------------------------+
> | Table has been created. |
> +-------------------------+
> Fetched 1 row(s) in 0.21s
> [4620ee0acf3b:21050] default> select * from default.empty_ice_tbl.entries;
> Query: select * from default.empty_ice_tbl.entries
> Query submitted at: 2024-01-11 10:51:05 (Coordinator: 
> http://4620ee0acf3b:25000)
> Query state can be monitored at: 
> http://4620ee0acf3b:25000/query_plan?query_id=544ab08315c17508:5d14118400000000
> ERROR: NullPointerException: null
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to