[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:
@ -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(
|
||||
|
||||
Reference in New Issue
Block a user