Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
Signed-off-by: sunby <[email protected]>
  • Loading branch information
sunby committed Feb 20, 2025
1 parent 3050104 commit 0b14ab4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/core/unittest/test_expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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;
Expand Down Expand Up @@ -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<expr::UnaryRangeFilterExpr>(
Expand Down

0 comments on commit 0b14ab4

Please sign in to comment.