JingsongLi opened a new pull request, #34: URL: https://github.com/apache/paimon-vector-index/pull/34
## Summary Expose Java and Python metadata type fields as canonical strings instead of binding-level enums or numeric codes. This keeps `indexType` and `metric` aligned with the string options used to create indexes and avoids leaking Rust storage/JNI code values into integration APIs. ## Changes - Remove Java `IndexType` and `Metric` enum APIs and return strings from `VectorIndexMetadata.indexType()` and `VectorIndexMetadata.metric()`. - Update JNI metadata construction to pass canonical index type and metric strings into Java. - Add `MetricType::as_str()` in core and reuse core string helpers from Python metadata bindings. - Update Java API tests to assert string metadata values. ## Testing - [x] `mvn -q test` - [x] `cargo test --workspace` - [x] `cargo check --manifest-path python/Cargo.toml` ## Notes `cargo test --manifest-path python/Cargo.toml` was also attempted locally, but the test binary fails to link against local PyO3/Python symbols on this machine (for example `_PyBaseObject_Type`). `cargo check` passes for the Python binding changes. -- 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]
