Skip to content

Commit fcfc473

Browse files
committed
Allow adding and altering vector indexes in GMS.
1 parent 5172230 commit fcfc473

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

sql/planbuilder/ddl.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,6 @@ func (b *Builder) buildIndexDefs(_ *scope, spec *ast.TableSpec) (idxDefs sql.Ind
681681
} else if idxDef.Info.Vector {
682682
// TODO: different kinds of vector HNSW, IVFFLAT, etc...
683683
constraint = sql.IndexConstraint_Vector
684-
b.handleErr(sql.ErrUnsupportedFeature.New("vector index"))
685684
}
686685

687686
columns := b.gatherIndexColumns(idxDef.Columns)
@@ -818,7 +817,6 @@ func (b *Builder) buildAlterIndex(inScope *scope, ddl *ast.DDL, table *plan.Reso
818817
constraint = sql.IndexConstraint_Spatial
819818
case ast.VectorStr:
820819
constraint = sql.IndexConstraint_Vector
821-
b.handleErr(sql.ErrUnsupportedFeature.New("vector index"))
822820
case ast.PrimaryStr:
823821
constraint = sql.IndexConstraint_Primary
824822
default:

0 commit comments

Comments
 (0)