MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / equalsIgnoringVariant

Method equalsIgnoringVariant

src/DataTypes/DataTypeAggregateFunction.cpp:217–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217bool DataTypeAggregateFunction::equalsIgnoringVariant(const IDataType & rhs) const
218{
219 if (typeid(rhs) != typeid(*this))
220 return false;
221
222 auto lhs_state_type = function->getNormalizedStateType();
223 auto rhs_state_type = typeid_cast<const DataTypeAggregateFunction &>(rhs).function->getNormalizedStateType();
224
225 return strictEquals(lhs_state_type, rhs_state_type, /*ignore_variant=*/ true);
226}
227
228bool DataTypeAggregateFunction::equals(const IDataType & rhs) const
229{

Callers 3

haveSameDefinitionMethod · 0.80
readMethod · 0.80

Calls 1

Tested by

no test coverage detected