huan233usc opened a new pull request, #17788: URL: https://github.com/apache/iceberg/pull/17788
## Summary - Add a package-private collector for XY bounds of geography points and minor great-circle edges on a sphere. - Compute latitude extrema along edge interiors and conservatively expand computed extrema to avoid under-coverage from floating-point error. - Merge covered longitude intervals by removing the largest uncovered circular gap, including antimeridian-wrapping bounds. - Return no bounds for empty input or after an invalid/out-of-range coordinate is observed; use world bounds for ambiguous antipodal edges. ## Scope This is the algorithm kernel for a follow-up geography metrics integration. It intentionally does not add WKB traversal, Parquet writer wiring, polygon pole-containment detection, or ellipsoidal/Karney interpolation. ## Testing - `./gradlew :iceberg-core:test --tests org.apache.iceberg.TestSphericalGeographyBounds` - `./gradlew :iceberg-core:spotlessCheck` Tests cover latitude bulges, antimeridian wrapping, longitude interval union, poles, antipodal and coincident endpoints, invalid and empty input, and 2,000 deterministic random edges sampled along their minor arcs. --- **AI Disclosure** - Model: GPT-5 - Platform/Tool: Codex - Human Oversight: partially reviewed - Prompt Summary: Implement a focused spherical geography bounding-box collector and correctness tests. -- 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]
