Zoltán Borók-Nagy created IMPALA-15827:
------------------------------------------
Summary: Imported Iceberg data files are not detected when time
travelling or when they are in the data directory
Key: IMPALA-15827
URL: https://issues.apache.org/jira/browse/IMPALA-15827
Project: IMPALA
Issue Type: Bug
Components: Frontend
Reporter: Zoltán Borók-Nagy
Assignee: Zoltán Borók-Nagy
IMPALA-15639 only pushes down identity partition predicates if the table has
data files outside its data location, because the column bounds of imported
files can be wrong (e.g. Iceberg reads the bounds of TIMESTAMP(MILLIS) Parquet
files as microseconds). The check misses two cases:
* It only looks at the current snapshot. After OPTIMIZE rewrote the imported
files, {{SELECT ... FOR SYSTEM_VERSION AS OF <import snapshot> WHERE ts >=
'2024-01-01'}} pushes the predicate and Iceberg skips the imported file.
* Files imported in place under {{<location>/data/}} (e.g. with Spark's
add_files procedure) are not detected at all.
Both return 0 rows instead of 1 once the predicate is pushed down. The same
happens for {{d < 100}} when a DECIMAL(10,3) file column was imported into a
DECIMAL(10,2) table column (12.345 becomes the bound 123.45). On master these
need a partition predicate in the query, IMPALA-15629 makes them the default.
Fix: compute the flag for the scanned snapshot when time travelling, and also
treat tables with {{schema.name-mapping.default}} (set by the usual importers)
as having imported files.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)