This commit is contained in:
Alexey Milovidov 2021-04-21 00:23:39 +03:00
parent 502bc3575c
commit 054da0ea34
2 changed files with 8 additions and 4 deletions

View File

@ -56,7 +56,10 @@ public:
+ " because the values of that data type are not comparable", ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT);
}
String getName() const override { return StringRef(Data::ValueData_t::name()) == StringRef("min") ? "argMin" : "argMax"; }
String getName() const override
{
return StringRef(Data::ValueData_t::name()) == StringRef("min") ? "argMin" : "argMax";
}
DataTypePtr getReturnType() const override
{

View File

@ -419,9 +419,10 @@ public:
new (place) Data;
}
void create(AggregateDataPtr __restrict place) const override { new (place) Data; }
void destroy(AggregateDataPtr __restrict place) const noexcept override { data(place).~Data(); }
void destroy(AggregateDataPtr __restrict place) const noexcept override
{
data(place).~Data();
}
bool hasTrivialDestructor() const override
{