[
https://issues.apache.org/jira/browse/IMPALA-12243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18038812#comment-18038812
]
ASF subversion and git services commented on IMPALA-12243:
----------------------------------------------------------
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 <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
> Add support for DROP PARTITION for Iceberg tables
> -------------------------------------------------
>
> Key: IMPALA-12243
> URL: https://issues.apache.org/jira/browse/IMPALA-12243
> Project: IMPALA
> Issue Type: New Feature
> Components: Frontend
> Reporter: Zoltán Borók-Nagy
> Assignee: Peter Rozsa
> Priority: Major
> Labels: impala-iceberg
> Fix For: Impala 4.4.0
>
>
> Add support for DROP PARTITION for Iceberg tables.
> Users should be able to run statements like the followings:
> * alter table table_a drop partition (country = 'SG')
> * alter table table_a drop partition (identity(country) = 'SG')
> * alter table table_a drop partition (dt < '2023-01-01 00:00:00')
> * alter table table_a drop partition (year(dt) < "2023")
> * alter table table_a drop partition (year(dt) < "2023" and month(dt) <
> "2023-06")
> * alter table table_a drop partition (bucket(5, s) < 2)
> * alter table table_a drop partition (truncate(5, s) = "trunc")
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]