Nándor Kollár created IMPALA-15793:
--------------------------------------
Summary: DELETE, UPDATE and MERGE fail on Iceberg data files whose
partition source column was dropped
Key: IMPALA-15793
URL: https://issues.apache.org/jira/browse/IMPALA-15793
Project: IMPALA
Issue Type: Bug
Reporter: Nándor Kollár
After an Iceberg table's partition spec is changed and the source column of an
old partition field is dropped, DELETE, UPDATE and MERGE on rows in data files
of the old spec hit a DCHECK in IcebergDeleteSinkBase::ConstructPartitionInfo()
and crash impalad in debug builds. In release builds the check is skipped, and
the delete file is probably committed without partition data (not verified).
Repro:
{code}
CREATE TABLE t (i INT, j INT, s STRING) PARTITIONED BY SPEC (identity(j))
STORED BY ICEBERG TBLPROPERTIES ('format-version'='2');
INSERT INTO t VALUES (1, 10, 'a'), (2, 20, 'b');
ALTER TABLE t SET PARTITION SPEC (identity(s));
ALTER TABLE t DROP COLUMN j;
DELETE FROM t WHERE i = 1; -- Check failed: partition_values_str.empty()
{code}
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)