anshurajbisoyi98-ctrl opened a new pull request, #2729: URL: https://github.com/apache/iceberg-go/pull/2729
Fixes #2716 `DataFileStatsFromMeta` skipped footer bounds entirely for columns in `none` or `counts` mode, so when one of them was a partition source, `AddDataFilesByPath` had nothing to infer from and wrote a null partition. This change reads the bounds for those columns anyway but keeps them in a separate `partitionBounds` map on `DataFileStatistics`. They're used to infer a partition value, or to check a supplied one, and are never written to the manifest. The metrics mode still decides what lands in the manifest (`none` writes nothing for the column, `counts` writes value and null counts). If the footer bounds are incomplete, import now fails with the same "supply a partition value" error as in `full` mode, where before it silently wrote null. Added tests for both modes: import with complete footer stats infers `amount=7` and the filtered scan finds the rows, and import with missing bounds needs an explicit value that matches the footer. -- 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]
