From 7e4677df666559251d5689a88cddaefe5881f726 Mon Sep 17 00:00:00 2001 From: cqy123456 Date: Mon, 25 Nov 2024 23:02:44 -0500 Subject: [PATCH] fix:[2.4]GrowingDataGetter get the wrong string data Signed-off-by: cqy123456 --- internal/core/src/query/GroupByOperator.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/core/src/query/GroupByOperator.h b/internal/core/src/query/GroupByOperator.h index b1d830a954fde..4ef1297bf1df5 100644 --- a/internal/core/src/query/GroupByOperator.h +++ b/internal/core/src/query/GroupByOperator.h @@ -50,7 +50,11 @@ class GrowingDataGetter : public DataGetter { T Get(int64_t idx) const { - return growing_raw_data_->operator[](idx); + if constexpr (std::is_same_v) { + return T(growing_raw_data_->view_element(idx)); + } else { + return growing_raw_data_->operator[](idx); + } } };