mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 17:48:29 +08:00
fix: fix upsert using wrong field to compute partition key (#30772)
#30607 Signed-off-by: luzhang <luzhang@zilliz.com> Co-authored-by: luzhang <luzhang@zilliz.com>
This commit is contained in:
parent
16b4c9a79e
commit
c5363c70db
@ -198,8 +198,8 @@ func (it *upsertTask) insertPreExecute(ctx context.Context) error {
|
||||
}
|
||||
|
||||
if it.partitionKeyMode {
|
||||
pkFieldSchema, _ := it.schema.GetPkField()
|
||||
it.partitionKeys, err = getPartitionKeyFieldData(pkFieldSchema, it.upsertMsg.InsertMsg)
|
||||
fieldSchema, _ := typeutil.GetPartitionKeyFieldSchema(it.schema.CollectionSchema)
|
||||
it.partitionKeys, err = getPartitionKeyFieldData(fieldSchema, it.upsertMsg.InsertMsg)
|
||||
if err != nil {
|
||||
log.Warn("get partition keys from insert request failed",
|
||||
zap.String("collectionName", collectionName),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user