You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "huan233usc (via GitHub)" <gi...@apache.org> on 2026/07/12 20:48:08 UTC
[PR] WIP: Demonstrate geometry bounding box drives file skipping [iceberg]
huan233usc opened a new pull request, #17173:
URL: https://github.com/apache/iceberg/pull/17173
> [!IMPORTANT]
> Draft / proof-of-concept, stacked on #17161 (Compute geometry bounding box metrics).
> The first commit here is #17161; review that one there. This PR is only the second
> commit — a demonstration that the bounds #17161 writes are usable for data skipping.
> Not intended to merge as-is.
## Why
#17161 writes a per-file geometry bounding box into `lower_bounds`/`upper_bounds`, but
nothing consumes it yet: `InclusiveMetricsEvaluator` has no geo branch, there is no
spatial predicate in the `Expression` API, and `GeospatialPredicateEvaluators` (the
bbox-intersection evaluator that already exists) is not wired into scan planning. So it
is fair to ask whether those bounds are actually useful. This PoC answers that: yes —
the stored bbox is sufficient to prune files.
## What it shows
`TestGeospatialDataSkipping` writes two geometry files with disjoint point clusters,
reads each file's bbox back from `DataFile.lowerBounds()/upperBounds()` (via
`Conversions.fromByteBuffer(GEOMETRY, …)` → `GeospatialBound`), builds a `BoundingBox`,
and intersects a query window against each using the existing
`GeospatialPredicateEvaluators.create(type).intersects(query, fileBbox)`:
- a window over the first cluster keeps file A and **prunes** file B;
- a window over the second cluster keeps file B and prunes file A.
This is the full write→store→read→intersect chain, end to end, on real Parquet files.
## What is still missing for production pruning (not in this PoC)
1. A spatial predicate in the `Expression` API to carry the query bbox (there is no
`ST_Intersects`/`Operation` for it today; geo types also have no `Comparator`, so
ordinary comparison predicates can't bind to a geo column).
2. Wiring the bbox intersection into `InclusiveMetricsEvaluator` /
`ManifestReader` so scan planning skips files automatically.
Opening this as a draft to make the value of #17161 concrete and to anchor discussion on
the pruning-side design.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] WIP: Demonstrate geometry bounding box drives file skipping [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #17173:
URL: https://github.com/apache/iceberg/pull/17173#issuecomment-5349553217
This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] WIP: Demonstrate geometry bounding box drives file skipping [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #17173: WIP: Demonstrate geometry bounding box drives file skipping
URL: https://github.com/apache/iceberg/pull/17173
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] WIP: Demonstrate geometry bounding box drives file skipping [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #17173:
URL: https://github.com/apache/iceberg/pull/17173#issuecomment-5260484153
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org