Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: chasingegg <[email protected]>
  • Loading branch information
chasingegg committed Jan 10, 2025
1 parent 357a919 commit 23ca755
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/proxy/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ func (t *createCollectionTask) PreExecute(ctx context.Context) error {
return err
}

hasPartitionKey := hasParitionKeyModeField(t.schema)
hasPartitionKey := hasPartitionKeyModeField(t.schema)
if _, err := validatePartitionKeyIsolation(ctx, t.CollectionName, hasPartitionKey, t.GetProperties()...); err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion internal/proxy/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,7 @@ func isPartitionKeyMode(ctx context.Context, dbName string, colName string) (boo
return false, nil
}

func hasParitionKeyModeField(schema *schemapb.CollectionSchema) bool {
func hasPartitionKeyModeField(schema *schemapb.CollectionSchema) bool {
for _, fieldSchema := range schema.GetFields() {
if fieldSchema.IsPartitionKey {
return true
Expand Down

0 comments on commit 23ca755

Please sign in to comment.