From 0b14ab463468f0c25b199cbdf500aad6628d10a9 Mon Sep 17 00:00:00 2001 From: sunby Date: Thu, 20 Feb 2025 16:00:26 +0800 Subject: [PATCH] fix ut Signed-off-by: sunby --- internal/core/unittest/test_expr.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/core/unittest/test_expr.cpp b/internal/core/unittest/test_expr.cpp index 2ac378044352e..7dac5c430fda8 100644 --- a/internal/core/unittest/test_expr.cpp +++ b/internal/core/unittest/test_expr.cpp @@ -41,6 +41,7 @@ #include "segcore/segment_c.h" #include "storage/FileManager.h" #include "storage/Types.h" +#include "storage/Util.h" #include "test_utils/DataGen.h" #include "test_utils/GenExprProto.h" #include "index/IndexFactory.h" @@ -50,6 +51,7 @@ #include "expr/ITypeExpr.h" #include "index/BitmapIndex.h" #include "index/InvertedIndexTantivy.h" +#include "mmap/Types.h" using namespace milvus; using namespace milvus::query; @@ -16104,7 +16106,10 @@ TYPED_TEST(JsonIndexTestFixture, TestJsonIndexUnaryExpr) { load_index_info.index_params = {{JSON_PATH, this->json_path}}; seg->LoadIndex(load_index_info); - auto json_field_data_info = FieldDataInfo(json_fid.get(), N, {json_field}); + auto json_field_data_info = FieldDataInfo( + json_fid.get(), + N, + {storage::ConvertFieldDataToArrowDataWrapper(json_field)}); seg->LoadFieldData(json_fid, json_field_data_info); auto unary_expr = std::make_shared(