[fix](window_func) fix bug of agg function used in window function and add many test cases (#40678) (#41328)

## Proposed changes

Issue Number: close #xxx

BP #40678
This commit is contained in:
TengJianPing
2024-09-26 22:50:34 +08:00
committed by GitHub
parent 3eda77b3d9
commit bf3d4240be
15 changed files with 1442 additions and 53 deletions

View File

@ -62,12 +62,12 @@ struct AggregateFunctionBinary
String get_name() const override { return StatFunc::Data::name(); }
void reset(AggregateDataPtr __restrict place) const override { this->data(place).reset(); }
DataTypePtr get_return_type() const override {
return std::make_shared<DataTypeNumber<ResultType>>();
}
bool allocates_memory_in_arena() const override { return false; }
void add(AggregateDataPtr __restrict place, const IColumn** columns, ssize_t row_num,
Arena*) const override {
this->data(place).add(