thswlsqls opened a new pull request, #8676: URL: https://github.com/apache/paimon/pull/8676
### Purpose fix #8675 - An index built with `lumina.distance.metric=L2` (enum form) persisted the raw string into the index meta, so `LuminaIndexMeta.metric()` threw `IllegalArgumentException` on every search. - `parseMetric()` accepts enum-form names (`L2`, `COSINE`, `INNER_PRODUCT`), but the read path `LuminaVectorMetric.fromLuminaName()` matches native lowercase only. - Persist the canonical native name via `metric.getLuminaName()` after `buildLuminaOptions()`, mirroring `LuminaVectorGlobalIndexer.metric()` which already normalizes. ### Tests - Added `LuminaVectorOptionsTest#enumFormMetricIsNormalizedToNativeNameInMeta` covering enum-form `L2`/`INNER_PRODUCT` normalization to native names, readability via `LuminaIndexMeta.metric()`, and native-form no-regression. - `mvn -pl paimon-lumina -am -DfailIfNoTests=false -Dtest=LuminaVectorOptionsTest clean install` (JDK 11) — 6 tests passed; checkstyle + spotless + rat passed. - Native-lib test classes (x86_64-only) not run on this arm64 machine — covered by CI (fork Actions). -- 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]
