Nandor Kollar has uploaded this change for review. ( https://gerrit.cloudera.org/25276
Change subject: IMPALA-15730: Fix DROP PARTITION truncating Iceberg tables ...................................................................... IMPALA-15730: Fix DROP PARTITION truncating Iceberg tables ALTER TABLE DROP PARTITION on an Iceberg table truncates the table if the selected files are all the files of the table: their number is compared with the total number of data and delete files in the snapshot summary. The paths were collected into a list from the scan tasks of the selected data files, and a delete file that applies to several of them, e.g. a position delete file of format version 2 or an equality delete file, is in the deletes of each of their scan tasks, so it was counted several times. If the inflated count matched the total, the partitions that were not selected were dropped as well. The paths are now collected into a set, and TIcebergDropPartitionRequest sends them as a set. Testing: - Added EE tests that drop a partition with a position delete file that applies to two data files, in a table of format version 2 and in a table upgraded to format version 3, and then the last partition. Change-Id: I47dd166a468f1ae038c36e052cfe24fbb9932a3c Assisted-by: Claude Opus 5.5 (Claude Code) --- M common/thrift/CatalogObjects.thrift M fe/src/main/java/org/apache/impala/analysis/AlterTableDropPartitionStmt.java M testdata/workloads/functional-query/queries/QueryTest/iceberg-drop-partition.test 3 files changed, 64 insertions(+), 13 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/76/25276/1 -- To view, visit https://gerrit.cloudera.org/25276 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I47dd166a468f1ae038c36e052cfe24fbb9932a3c Gerrit-Change-Number: 25276 Gerrit-PatchSet: 1 Gerrit-Owner: Nandor Kollar <[email protected]>
