[Feature] Add Paimon Global Index planning framework
Author: wxl24lifeCreated Sep 23, 2026Updated Sep 28, 2026
Feature request
Implement the connector-neutral Paimon Global Index planning framework tracked by #79430. The implementation is #79483.
Dependency boundary
Paimon 2.0 can already evaluate Global Indexes automatically during an ordinary filtered scan. The current-main correctness work for that existing behavior is isolated in prerequisite #79853:
- safe
IndexedSplitplanning and JNI routing; FULLscalar search so rows appended after the latest index refresh are not lost;- empty append-only, Data Evolution, and Primary Key table handling;
- real BTree and serialized-reader regression coverage.
#79853 intentionally adds no StarRocks Global Index configuration. #79483 is stacked on it and owns only the reusable planning framework below.
Scope
- Connector-neutral, snapshot-bound descriptors for provider, stable field ID, metric/dimension, nullability, table type, coverage, and connector-declared operations.
- Production delegation through
CatalogConnectorMetadataandUnifiedMetadata. - Paimon 2.0 provider discovery from
GlobalIndexMeta, with current-schema binding by field ID rather than historical column name. - Snapshot, branch, and tag time-travel handling; incremental-between rejection; and invalid-snapshot short-circuiting.
- Metadata caching that avoids table UUID I/O, isolates branch/snapshot identity, retries failed loads, exposes configurable capacity, and traces manifest scans.
- Safe scalar-predicate and Vector Top-N recognition, including metric/dimension checks, final
ROW_NUMBERsemantics,k = limit + offset, NULL ordering, and separate index/partition/residual predicates. - Logical-to-physical condition propagation and plan visibility while preserving the original predicate, projection, score expression, and Top-N.
- Unit and SQL-plan coverage, including wrapper delegation, schema rename/name-reuse safety, real Paimon index discovery, and Vector Top-N normalization.
Non-goals
This framework has no execution consumer and no external result SPI. Distributed Global Index execution, snapshot-guarded result application, global score reduction, Vector score replacement, FTS execution, and hybrid retrieval remain follow-up stages in #79430.
Source: StarRocks/starrocks