253240 : WindowExecutor(SimplifyWindowedAggregate(wexpr, client), shared), mode(mode) {
253241
253243 if (!WindowNaiveAggregator::CanAggregate(wexpr)) {
253244 throw InvalidInputException("Cannot use non-aggregate window function with naive window executor!");
253245 }
253246 aggregator = make_uniq<WindowNaiveAggregator>(*this, shared);
253247 } else if (WindowDistinctAggregator::CanAggregate(wexpr)) {
253248
253249
253250 aggregator = make_uniq<WindowDistinctAggregator>(wexpr, shared, client);
253251 } else if (WindowConstantAggregator::CanAggregate(wexpr)) {
253252 aggregator = make_uniq<WindowConstantAggregator>(wexpr, shared, client);
253253 } else if (WindowCustomAggregator::CanAggregate(wexpr, mode)) {
253254 aggregator = make_uniq<WindowCustomAggregator>(wexpr, shared);
253255 } else if (WindowSegmentTree::CanAggregate(wexpr)) {
253256
253257
253258 aggregator = make_uniq<WindowSegmentTree>(wexpr, shared);
253259 } else if (WindowNaiveAggregator::CanAggregate(wexpr)) {
253260
253261 aggregator = make_uniq<WindowNaiveAggregator>(*this, shared);
253262 } else {
253263
253264
253265
253266 throw InternalException("Could not create a window aggregator with the given parameters!");
253267 }
253268
253269
253270
253271 if (wexpr.filter_expr) {
253272 const auto filter_idx = shared.RegisterSink(wexpr.filter_expr);
253273 filter_ref = make_uniq<BoundReferenceExpression>(wexpr.filter_expr->return_type, filter_idx);
253274 }
253275}
@ SEPARATE
Don't use combine or window (compute each frame separately).
Definition duckdb.cpp:52968