Skip to content

Commit

Permalink
fix: Skip loading primary key index if index has raw data
Browse files Browse the repository at this point in the history
Signed-off-by: sunby <[email protected]>
  • Loading branch information
sunby committed Feb 17, 2025
1 parent 56c1a8d commit 50d36fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/querynodev2/segments/segment_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ func (loader *segmentLoader) loadSealedSegment(ctx context.Context, loadInfo *qu
if err != nil {
return err
}
if (!typeutil.IsVectorType(field.GetDataType()) && !segment.HasRawData(fieldID)) || field.GetIsPrimaryKey() {
if (!typeutil.IsVectorType(field.GetDataType()) && !segment.HasRawData(fieldID)) {
log.Info("field index doesn't include raw data, load binlog...",
zap.Int64("fieldID", fieldID),
zap.String("index", info.IndexInfo.GetIndexName()),
Expand Down

0 comments on commit 50d36fe

Please sign in to comment.