Skip to content

Commit 95fb008

Browse files
authored
Add go sdk for smve (#3374)
1 parent ed8b010 commit 95fb008

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

go/index.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const (
2929
IndexTypeBMP IndexType = 7
3030
IndexTypeDiskAnn IndexType = 8
3131
IndexTypePLAID IndexType = 9
32+
IndexTypeSMVE IndexType = 10
3233
)
3334

3435
func (it IndexType) String() string {
@@ -51,6 +52,8 @@ func (it IndexType) String() string {
5152
return "DiskAnn"
5253
case IndexTypePLAID:
5354
return "PLAID"
55+
case IndexTypeSMVE:
56+
return "SMVE"
5457
default:
5558
return "Unknown"
5659
}

go/internal/thrift/infinity.go

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/table.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ func (t *Table) CreateIndex(indexName string, indexInfo *IndexInfo, conflictType
121121
thriftIndexType = thriftapi.IndexType_DiskAnn
122122
case IndexTypePLAID:
123123
thriftIndexType = thriftapi.IndexType_PLAID
124+
case IndexTypeSMVE:
125+
thriftIndexType = thriftapi.IndexType_SMVE
124126
default:
125127
return nil, NewInfinityException(int(ErrorCodeInvalidIndexType), "Invalid index type")
126128
}

0 commit comments

Comments
 (0)