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 "ASF subversion and git services (Jira)" <ji...@apache.org> on 2025/11/17 10:45:00 UTC
[jira] [Commented] (IMPALA-14108) SHOW FILES IN [db_name.]table_name PARTITION (key_col_expression [, key_col_expression]) throws NPE for Iceberg tables
[ https://issues.apache.org/jira/browse/IMPALA-14108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18038811#comment-18038811 ]
ASF subversion and git services commented on IMPALA-14108:
----------------------------------------------------------
Commit 087b715a2b80b2d24235abba96afcf01675930d5 in impala's branch refs/heads/master from Mihaly Szjatinya
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=087b715a2 ]
IMPALA-14108: Add support for SHOW FILES IN table PARTITION for Iceberg
tables
This patch implements partition filtering support for the SHOW FILES
statement on Iceberg tables, based on the functionality added in
IMPALA-12243. Prior to this change, the syntax resulted in a
NullPointerException.
Key changes:
- Added ShowFilesStmt.analyzeIceberg() to validate and transform
partition expressions using IcebergPartitionExpressionRewriter and
IcebergPartitionPredicateConverter. After that, it collects matching
file paths using IcebergUtil.planFiles().
- Added FeIcebergTable.Utils.getIcebergTableFilesFromPaths() to
accept pre-filtered file lists from the analysis phase.
- Enhanced TShowFilesParams thrift struct with optional selected_files
field to pass pre-filtered file paths from frontend to backend.
Testing:
- Analyzer tests for negative cases: non-existent partitions, invalid
expressions, non-partition columns, unsupported transforms.
- Analyzer tests for positive cases: all transform types, complex
expressions.
- Authorization tests for non-filtered and filtered syntaxes.
- E2E tests covering every partition transform type with various
predicates.
- Schema evolution and rollback scenarios.
The implementation follows AlterTableDropPartition's pattern where the
analysis phase performs validation/metadata retrieval and the execution
phase handles result formatting and display.
Change-Id: Ibb9913e078e6842861bdbb004ed5d67286bd3152
Reviewed-on: http://gerrit.cloudera.org:8080/23455
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
> SHOW FILES IN [db_name.]table_name PARTITION (key_col_expression [, key_col_expression]) throws NPE for Iceberg tables
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: IMPALA-14108
> URL: https://issues.apache.org/jira/browse/IMPALA-14108
> Project: IMPALA
> Issue Type: Bug
> Components: Frontend
> Reporter: Zoltán Borók-Nagy
> Assignee: Mihaly Szjatinya
> Priority: Major
> Labels: impala-iceberg
>
> SHOW FILES IN [db_name.]table_name PARTITION (key_col_expression [, key_col_expression]) throws NPE for Iceberg tables.
> Repro:
> {noformat}
> show files in functional_parquet.iceberg_partitioned partition(action='click');{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org