You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
144533: sql/vecindex: support operator class and index type syntax r=mw5h a=DrewKimball
#### sql/vecindex: ability to specify distance functions for index creation
This commit adds support for specifying the operator class for a vector
index (e.g. `vector_l2_ops`, `vector_cosine_ops` etc.). Currently, only
`vector_l2_ops` is supported. It is also the default option, which means
that users can omit the operator class in index definitions.
Fixes#143110
Release note (sql change): It is now possible to specify the operator
class for a vector index, although only `vector_l2_ops` is supported for
now. In addition, `vector_l2_ops` is the default, so it is possible to
omit the operator class from an index definition.
#### sql/vecindex: make hnsw alias for cspann for index creation
This commit adds `hnsw` to the accepted list of index types when a
vector index is defined using the `USING` syntax. However, we will
silently provide a `cspann` index instead. This change is made in
anticipation of third-party tools that want to use `cspann`.
Fixes#143109
Release note (sql change): When creating a vector index via the `USING`
syntax, is is now possible to specify `hnsw` as the index type, although
a `cspann` vector index will still be provided. The goal of this change
is to increase compatibility with third-party tools.
Co-authored-by: Drew Kimball <[email protected]>
0 commit comments