stevenzwu opened a new pull request, #19079: URL: https://github.com/apache/iceberg/pull/19079
Follow-up to #19070. This reads v4 geo lower/upper bounds into a core `GeospatialBoundStruct` built on `SupportsIndexProjection`, so a projection of only some coordinates (e.g. `content_stats.geom.lower_bound.m`) maps each value back to the right x/y/z/m slot without projecting the full bound struct. `x()`/`y()` throw NPE when not projected; z/m are NaN when absent. The write path still uses `GeospatialBound`, and field stats copies now keep it as is instead of converting it to a generic struct. `ContentStatsBackedMap` keeps its contract: converting a bound without x/y to v3 bytes fails, which only happens with custom projections. Test plan: - Full projection of XYZM and XY bounds across two files (Avro, Parquet) - Projecting only m: m is in the right place, x/y throw - Projecting x, y, m: m maps correctly with z skipped - XYM projection converts to correct legacy lower/upper bound bytes -- 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]
