mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
dea1706d4e
* Fix GROUP BY AggregateFunction finalizeChunk() was unconditionally converting AggregateFunction to the underlying type, however this should be done only if the aggregate was applied. So pass names of aggregates as an argument to the finalizeChunk() Fuzzer report [1]: Logical error: 'Bad cast from type DB::ColumnArray to DB::ColumnAggregateFunction'. Received signal 6 Received signal Aborted (6) For the following query: SELECT arraySort(groupArrayArray(grp_simple)), grp_aggreg, arraySort(groupArrayArray(grp_simple)), b, arraySort(groupArrayArray(grp_simple)) AS grs FROM data_02294 GROUP BY a, grp_aggreg, b SETTINGS optimize_aggregation_in_order = 1 [1]: https://s3.amazonaws.com/clickhouse-test-reports/37050/323ae98202d80fc4b311be1e7308ef2ac39e6063/fuzzer_astfuzzerdebug,actions//fuzzer.log v2: fix conflicts in src/Interpreters/InterpreterSelectQuery.cpp v3: Fix header for GROUP BY AggregateFunction WITH TOTALS v4: Add sanity check into finalizeBlock() v5: Use typeid_cast<&> to get more sensible error in case of bad cast (as suggested by @nickitat) v6: Fix positions passed to finalizeChunk() Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com> * Core/ColumnNumbers.h: remove unused <string> Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com> * Optimize finalizeChunk()/finalizeBlock() v2: s/ByPosition/Mask/ s/by_position/mask/ Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com> |
||
---|---|---|
.. | ||
Optimizations | ||
AggregatingStep.cpp | ||
AggregatingStep.h | ||
ArrayJoinStep.cpp | ||
ArrayJoinStep.h | ||
BuildQueryPipelineSettings.cpp | ||
BuildQueryPipelineSettings.h | ||
CreatingSetsStep.cpp | ||
CreatingSetsStep.h | ||
CubeStep.cpp | ||
CubeStep.h | ||
DistinctStep.cpp | ||
DistinctStep.h | ||
DistributedCreateLocalPlan.cpp | ||
DistributedCreateLocalPlan.h | ||
ExpressionStep.cpp | ||
ExpressionStep.h | ||
ExtremesStep.cpp | ||
ExtremesStep.h | ||
FillingStep.cpp | ||
FillingStep.h | ||
FilterStep.cpp | ||
FilterStep.h | ||
IntersectOrExceptStep.cpp | ||
IntersectOrExceptStep.h | ||
IQueryPlanStep.cpp | ||
IQueryPlanStep.h | ||
ISourceStep.cpp | ||
ISourceStep.h | ||
ITransformingStep.cpp | ||
ITransformingStep.h | ||
JoinStep.cpp | ||
JoinStep.h | ||
LimitByStep.cpp | ||
LimitByStep.h | ||
LimitStep.cpp | ||
LimitStep.h | ||
MergingAggregatedStep.cpp | ||
MergingAggregatedStep.h | ||
OffsetStep.cpp | ||
OffsetStep.h | ||
QueryIdHolder.cpp | ||
QueryIdHolder.h | ||
QueryPlan.cpp | ||
QueryPlan.h | ||
ReadFromMergeTree.cpp | ||
ReadFromMergeTree.h | ||
ReadFromPreparedSource.cpp | ||
ReadFromPreparedSource.h | ||
ReadFromRemote.cpp | ||
ReadFromRemote.h | ||
ReadNothingStep.cpp | ||
ReadNothingStep.h | ||
RollupStep.cpp | ||
RollupStep.h | ||
SettingQuotaAndLimitsStep.cpp | ||
SettingQuotaAndLimitsStep.h | ||
SortingStep.cpp | ||
SortingStep.h | ||
TotalsHavingStep.cpp | ||
TotalsHavingStep.h | ||
UnionStep.cpp | ||
UnionStep.h | ||
WindowStep.cpp | ||
WindowStep.h |