mirror of https://github.com/milvus-io/milvus.git
fix: fix upsert using wrong field to compute partition key (#30773)
pr: #30772 Signed-off-by: luzhang <luzhang@zilliz.com> Co-authored-by: luzhang <luzhang@zilliz.com>pull/30776/head
parent
ef086dc0ca
commit
e17775a20f
|
@ -197,8 +197,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…
Reference in New Issue