From 23c784cf69cd5b0ef975d8070e3e8475dd86be93 Mon Sep 17 00:00:00 2001 From: Bingyi Sun Date: Fri, 27 Jun 2025 16:44:41 +0800 Subject: [PATCH] fix: Fix querynode crash caused by json index (#42982) issue: https://github.com/milvus-io/milvus/issues/42978 Signed-off-by: sunby --- internal/core/src/segcore/SegmentSealed.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/core/src/segcore/SegmentSealed.h b/internal/core/src/segcore/SegmentSealed.h index 2aedc04a7c..09c84e26c9 100644 --- a/internal/core/src/segcore/SegmentSealed.h +++ b/internal/core/src/segcore/SegmentSealed.h @@ -133,8 +133,9 @@ class SegmentSealed : public SegmentInternalInterface { if (any_type) { return true; } - return milvus::index::json::IsDataTypeSupported( - index.cast_type, data_type, is_json_contain); + return index.nested_path == path && + milvus::index::json::IsDataTypeSupported( + index.cast_type, data_type, is_json_contain); }); return it != json_indices.end(); }