mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 10:08:42 +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 {
|
if it.partitionKeyMode {
|
||||||
pkFieldSchema, _ := it.schema.GetPkField()
|
fieldSchema, _ := typeutil.GetPartitionKeyFieldSchema(it.schema.CollectionSchema)
|
||||||
it.partitionKeys, err = getPartitionKeyFieldData(pkFieldSchema, it.upsertMsg.InsertMsg)
|
it.partitionKeys, err = getPartitionKeyFieldData(fieldSchema, it.upsertMsg.InsertMsg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Warn("get partition keys from insert request failed",
|
log.Warn("get partition keys from insert request failed",
|
||||||
zap.String("collectionName", collectionName),
|
zap.String("collectionName", collectionName),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user