JingsongLi opened a new pull request, #11396:
URL: https://github.com/apache/paimon/pull/11396
### Purpose
Adding a scalar Bitmap filter to a Centroid Vector index on a Data Evolution
table currently requires rebuilding the router and ANN shards.
`sys.add_global_index_fields` adds filter fields to existing Bitmap-enabled
centroid ranges while reusing those files.
```sql
CALL sys.add_global_index_fields(
table => 'db.embeddings',
index_column => 'embedding',
index_type => 'ivf-pq',
extra_fields => '{"region":"bitmap"}'
);
```
The procedure takes shard membership from the existing Bitmaps, reads the
requested scalar columns at a pinned snapshot, and publishes the expanded index
definition atomically. It supports partition selection and idempotent retries.
Index-coverage waiters recognize centroid indexes that retain the Bitmap fields
they were waiting for.
### Tests
- 20 Spark 3 tests in `CentroidVectorIndexTest` and `CentroidKryoBuildTest`,
including strict Kryo registration, prefiltering, and failed publication
cleanup.
- 49 focused Java tests for Bitmap reads, centroid metadata, index
visibility, commit abort and retry, and Java/Rust format compatibility.
- Verified both the appended and original Bitmap predicates through the Rust
reader on the Spark-generated fixture.
- Checkstyle, Spotless, and `git diff --check`.
--
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]