Skip to content

[feature] Support per-field vector index options#8239

Open
jerry-024 wants to merge 6 commits into
apache:masterfrom
jerry-024:support_column_conf
Open

[feature] Support per-field vector index options#8239
jerry-024 wants to merge 6 commits into
apache:masterfrom
jerry-024:support_column_conf

Conversation

@jerry-024

@jerry-024 jerry-024 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Purpose

Support per-field vector index options with fields.<field-name>.<option>.

This allows tables with multiple vector columns using the same index type to configure different dimensions or index parameters for each column. Field-level options do not include the index-type prefix, and they override index-type-level defaults such as <index-type>.<option> for the matching stored table column name.

Tests

Added unit tests in VectorGlobalIndexerFactoryTest:

  • field-level options override index-type-level options
  • field-level dimension overrides index-type-level dimension
  • field-level options only apply to the exact matching field name
  • field-level options work without an index-type-level counterpart
  • field-level vector options coexist with core fields.<field-name>.* options

Also ran:

  • git diff --check
  • mvn -o -pl paimon-vector/paimon-vector-index -Pfast-build -Dtest=VectorGlobalIndexerFactoryTest test failed locally because org.apache.paimon:paimon-core:jar:tests:1.5-SNAPSHOT was not available in the local Maven cache.

@jerry-024 jerry-024 marked this pull request as draft June 15, 2026 03:41
@jerry-024 jerry-024 changed the title [feature] paimon vector support filed conf [feature] Support per-field vector index options Jun 15, 2026
@jerry-024 jerry-024 marked this pull request as ready for review June 15, 2026 09:55
'data-evolution.enabled' = 'true',
'global-index.enabled' = 'true',
-- per-column dimensions
'ivf-pq.fields.title_embedding.dimension' = '768',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just fields.title_embedding.dimension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants