fix: Fix wrong trigger of json key index (#40026)

pr: https://github.com/milvus-io/milvus/pull/38039

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
pull/40027/head
zhenshan.cao 2025-02-20 03:59:11 +08:00 committed by GitHub
parent 37874ed6d7
commit f142b5bff8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 8 deletions

View File

@ -141,10 +141,6 @@ func needDoTextIndex(segment *SegmentInfo, fieldIDs []UniqueID) bool {
return false
}
if segment.GetTextStatsLogs() == nil {
return true
}
for _, fieldID := range fieldIDs {
if segment.GetTextStatsLogs()[fieldID] == nil {
return true
@ -159,10 +155,6 @@ func needDoJsonKeyIndex(segment *SegmentInfo, fieldIDs []UniqueID) bool {
return false
}
if segment.GetJsonKeyStats() == nil {
return true
}
for _, fieldID := range fieldIDs {
if segment.GetJsonKeyStats()[fieldID] == nil {
return true