mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 19:42:00 +00:00
Fxi checks
This commit is contained in:
parent
32095a2b74
commit
7453d0ce58
@ -105,7 +105,7 @@ public:
|
||||
virtual void merge(AggregateDataPtr __restrict place, ConstAggregateDataPtr rhs, Arena * arena) const = 0;
|
||||
|
||||
/// Serializes state (to transmit it over the network, for example).
|
||||
virtual void serialize(ConstAggregateDataPtr __restrict place, WriteBuffer & buf, std::optional<size_t> verison = std::nullopt) const = 0;
|
||||
virtual void serialize(ConstAggregateDataPtr __restrict place, WriteBuffer & buf, std::optional<size_t> version = std::nullopt) const = 0;
|
||||
|
||||
/// Deserializes state. This function is called only for empty (just created) states.
|
||||
virtual void deserialize(AggregateDataPtr __restrict place, ReadBuffer & buf, std::optional<size_t> version = std::nullopt, Arena * arena = nullptr) const = 0;
|
||||
|
@ -151,7 +151,7 @@ static DataTypePtr create(const ASTPtr & arguments)
|
||||
* it is parametric, or [ASTIdentifier, types...] - otherwise. If aggregate function has version in AST, then it will be:
|
||||
* [ASTLitearl, ASTFunction (or ASTIdentifier), types...].
|
||||
*/
|
||||
if (auto version_ast = arguments->children[0]->as<ASTLiteral>())
|
||||
if (auto * version_ast = arguments->children[0]->as<ASTLiteral>())
|
||||
{
|
||||
version = version_ast->value.safeGet<UInt64>();
|
||||
data_type_ast = arguments->children[1];
|
||||
|
@ -395,7 +395,7 @@ ColumnsDescription InterpreterCreateQuery::getColumnsDescription(
|
||||
{
|
||||
column_type = DataTypeFactory::instance().get(col_decl.type);
|
||||
|
||||
auto aggregate_function_type = typeid_cast<const DataTypeAggregateFunction *>(column_type.get());
|
||||
const auto * aggregate_function_type = typeid_cast<const DataTypeAggregateFunction *>(column_type.get());
|
||||
if (attach && aggregate_function_type && aggregate_function_type->isVersioned())
|
||||
aggregate_function_type->setVersionIfEmpty(0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user