From f6cfd922683fb866eb62aff3f297d5a0807ca7a8 Mon Sep 17 00:00:00 2001 From: Ted Xu Date: Thu, 26 Dec 2024 18:44:33 +0800 Subject: [PATCH] fix: build break under debug mode Signed-off-by: Ted Xu --- internal/core/src/segcore/SegmentSealedImpl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/core/src/segcore/SegmentSealedImpl.cpp b/internal/core/src/segcore/SegmentSealedImpl.cpp index 64a29db64492b..1944ca1086337 100644 --- a/internal/core/src/segcore/SegmentSealedImpl.cpp +++ b/internal/core/src/segcore/SegmentSealedImpl.cpp @@ -61,6 +61,7 @@ namespace milvus::segcore { case DataType::INT64: { \ auto col = \ std::dynamic_pointer_cast(column); \ + auto pks = reinterpret_cast(col->Data(0)); \ for (int i = 1; i < col->NumRows(); ++i) { \ assert(pks[i - 1] <= pks[i] && \ "INT64 Column is not ordered!"); \