From 0475eb0b17050fc5d1f13b4cee114acc3b1b29c0 Mon Sep 17 00:00:00 2001 From: avogar Date: Wed, 7 Sep 2022 18:53:22 +0000 Subject: [PATCH] Make better --- src/AggregateFunctions/AggregateFunctionState.h | 2 +- src/Interpreters/AggregationUtils.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/AggregateFunctions/AggregateFunctionState.h b/src/AggregateFunctions/AggregateFunctionState.h index 8de17580758..24d1a694e0a 100644 --- a/src/AggregateFunctions/AggregateFunctionState.h +++ b/src/AggregateFunctions/AggregateFunctionState.h @@ -114,7 +114,7 @@ public: IColumn * extractStateColumnFromResultColumn(IColumn * column) const override { - return assert_cast(column); + return column; } bool allocatesMemoryInArena() const override diff --git a/src/Interpreters/AggregationUtils.cpp b/src/Interpreters/AggregationUtils.cpp index 146d950d2c5..4d2f7647628 100644 --- a/src/Interpreters/AggregationUtils.cpp +++ b/src/Interpreters/AggregationUtils.cpp @@ -1,5 +1,4 @@ #include -#include namespace DB {