mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-25 19:10:42 +00:00
Allow creating multiple named vector indexes on the same column while still rejecting duplicate unnamed ones. `index_metadata::equals_noname()` now ignores `index_version`, which is unique for every vector index creation, so duplicate detection keeps working for unnamed vector indexes. CREATE INDEX keeps using structural duplicate detection for regular indexes and unnamed vector indexes, but named vector indexes are checked by name only. The explicit name check is also needed for IF NOT EXISTS when the same index name already exists on a different table in the same keyspace, because vector indexes have no backing view table to catch that case.