mattfaltyn opened a new issue, #2716:
URL: https://github.com/apache/iceberg-go/issues/2716

   ### Apache Iceberg version
   
   main (development), reproduced at `7cf76392bbf28bff03bccd1917efebfd5824e4bd`
   
   ### Please describe the bug 🐞
   
   `Transaction.AddDataFilesByPath` can commit a non-null Parquet file to a 
null partition when its source column uses metrics mode `none` or `counts`. The 
Parquet footer can have complete bounds.
   
   1. Create a table identity-partitioned by an optional `int` column named 
`amount`. Set `write.metadata.metrics.column.amount` to `none` or `counts`.
   2. Write a Parquet file containing two rows with `amount = 7` and complete 
footer statistics.
   3. Import it with `AddDataFilesByPath` without supplying partition values, 
then commit.
   
   The manifest records `amount=null`. An unfiltered scan returns both rows, 
and a scan for `amount = 7` returns zero. With `full` metrics, import infers 
`amount=7`.
   
   Partition inference should use reliable footer evidence or require an 
explicit partition value. The configured metrics mode should still control 
which metrics are written to the manifest.
   
   Raised during review of 
[#2597](https://github.com/apache/iceberg-go/pull/2597#pullrequestreview-6056078665).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to