Files
greptimedb/tests/cases
Lei, HUANG cba465ee76 feat(query): prune iceberg_hash partitions on literal equality (#10735)
* feat(query): derive region constraints for iceberg_hash equality

Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>

* test(query): cover iceberg_hash pruning fallbacks

Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>

* docs(query): document the planning-time repartition window

A staging route disables hash inference for the whole table at planning time. Region reads carry no partition version, so a later repartition can invalidate the selected IDs.

Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>

* test(query): verify unmatched hash writes use the region zero fallback

Exercise the write router with a gap that DDL rejects but the metadata loader accepts. Verify that the unmatched literal and the NULL routing input reach different Regions and that pruning keeps both. Clarify that the DROP DEFAULT SQL case checks row visibility on a fully covered layout.

Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>

* docs(query): clarify the public constraint pruning entry point

Keep the existing signature for callers that only have partition constraints. The distributed planner supplies scan-local predicates separately for hash inference.

Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>

* docs(query): explain why hash pruning collects scan-local filters

The ordinary constraint collector walks through projections and limits. Hash inference must discard outer predicates at those boundaries to preserve column and row selection semantics.

Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>

* docs(query): trace atomic expression ordering to the collider

Name the constructor and OR expansion that preserve source order for the partition point and contiguous groups in matching_regions.

Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>

---------

Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>
2026-11-30 13:49:16 +00:00
..