This commit is contained in:
lgbo-ustc 2024-03-13 17:39:40 +08:00
parent 87a03ae219
commit 8362c11c8a

View File

@ -1247,7 +1247,7 @@ void Aggregator::executeAggregateInstructions(
bool has_only_one_value_since_last_reset, bool has_only_one_value_since_last_reset,
bool no_more_keys, bool no_more_keys,
bool all_keys_are_const, bool all_keys_are_const,
bool use_compiled_functions) const bool use_compiled_functions [[maybe_unused]]) const
{ {
#if USE_EMBEDDED_COMPILER #if USE_EMBEDDED_COMPILER
if (use_compiled_functions) if (use_compiled_functions)
@ -2513,7 +2513,8 @@ void NO_INLINE Aggregator::mergeDataNullKey(
} }
template <typename Method, typename Table> template <typename Method, typename Table>
void NO_INLINE Aggregator::mergeDataImpl(Table & table_dst, Table & table_src, Arena * arena, bool use_compiled_functions, bool prefetch) const void NO_INLINE Aggregator::mergeDataImpl(
Table & table_dst, Table & table_src, Arena * arena, bool use_compiled_functions [[maybe_unused]], bool prefetch) const
{ {
if constexpr (Method::low_cardinality_optimization || Method::one_key_nullable_optimization) if constexpr (Method::low_cardinality_optimization || Method::one_key_nullable_optimization)
mergeDataNullKey<Method, Table>(table_dst, table_src, arena); mergeDataNullKey<Method, Table>(table_dst, table_src, arena);