mattfaltyn commented on code in PR #2597:
URL: https://github.com/apache/iceberg-go/pull/2597#discussion_r4705491783


##########
table/internal/parquet_files.go:
##########
@@ -2041,16 +2073,18 @@ func (p parquetFormat) DataFileStatsFromMeta(meta 
Metadata, statsCols map[int]St
        }
 
        slices.Sort(splitOffsets)
-       maps.DeleteFunc(nullValueCounts, func(fieldID int, _ int64) bool {
-               _, ok := invalidateCol[fieldID]
-
-               return ok
-       })
-       maps.DeleteFunc(colAggs, func(fieldID int, _ StatsAgg) bool {
-               _, ok := invalidateCol[fieldID]
-
-               return ok
-       })
+       for fieldID := range invalidateCol {

Review Comment:
   Thanks for the repro! 485c03f adds the `incompleteBounds` entry in the 
`invalidateCol` cleanup. I verified the exact `decimal(5,2)` / FLBA(16) case on 
the PR head, and `FileToDataFile` now returns `ErrInvalidArgument` and asks for 
a partition value.



-- 
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