Fix agg reserved buf len for extend type

This commit is contained in:
Zach41
2024-07-08 13:56:27 +00:00
committed by ob-robot
parent c6f3b906c3
commit 7190fdd5c1
2 changed files with 3 additions and 2 deletions

View File

@ -145,7 +145,7 @@ static int32_t reserved_agg_col_size(RuntimeContext &agg_ctx, int64_t agg_col_id
RTSIZE(VEC_TC_DATE), // date
RTSIZE(VEC_TC_TIME), // time
RTSIZE(VEC_TC_YEAR), // year
0, // extend
string_reserved_size, // extend
0, // unknown
string_reserved_size, // string
RTSIZE(VEC_TC_BIT), // bit

View File

@ -875,7 +875,8 @@ inline constexpr bool is_var_len_agg_cell(VecValueTypeClass vec_tc)
|| vec_tc == VEC_TC_JSON
|| vec_tc == VEC_TC_GEO
|| vec_tc == VEC_TC_UDT
|| vec_tc == VEC_TC_ROARINGBITMAP;
|| vec_tc == VEC_TC_ROARINGBITMAP
|| vec_tc == VEC_TC_EXTEND;
}
template <typename AggType>