hcrosse opened a new pull request, #2733: URL: https://github.com/apache/iceberg-go/pull/2733
Follow up to #2675. Parquet `TIMESTAMP(MILLIS)` columns previously skipped dictionary and bloom filter row group pruning because Iceberg equality and `IN` predicates carry microsecond physical bytes. - Carry `FieldType` on [`RowGroupBloomPred`](https://github.com/apache/iceberg-go/blob/main/table/internal/parquet_files.go#L2382) and [`RowGroupDictionaryPred`](https://github.com/apache/iceberg-go/blob/main/table/internal/parquet_files.go#L2392) from [`bloomPredicateCollector.VisitEqual`](https://github.com/apache/iceberg-go/blob/main/table/evaluators.go#L2218) and [`VisitIn`](https://github.com/apache/iceberg-go/blob/main/table/evaluators.go#L2232), sharing the `TimestampType` and `TimestampTzType` type check with [`TimestampMillisStatsForType`](https://github.com/apache/iceberg-go/blob/main/table/internal/parquet_files.go#L1869). - In [`wrapPqArrowReader.GetRecords`](https://github.com/apache/iceberg-go/blob/main/table/internal/parquet_files.go#L2606), adapt microsecond literals for `TIMESTAMP(MILLIS)` columns on a copy on write slice so shared pruning plans stay immutable. Literals divisible by 1000 convert to milliseconds, sub millisecond literals are dropped from `IN` sets, and predicates with no millisecond literal skip all row groups without reading dictionary or bloom pages. Predicates with `nil`, unexpected field types, or unexpected byte widths skip pruning conservatively. - Added unit and end to end tests covering logical and legacy `TIMESTAMP(MILLIS)` columns, negative and boundary timestamps, mixed and sub millisecond `IN` and equality filters, `NOT` normalization, nullable `OR(..., IsNull)` filters, nested struct columns, safety guards, shared tester immutability, and range tracked row group pruning proofs. -- 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]
