Support aggregation function in window#9758
Conversation
| fmt::format("Cannot allocate memory (posix_memalign), size: {}, alignment: {}.", size, alignment), | ||
| ErrorCodes::CANNOT_ALLOCATE_MEMORY, | ||
| res); | ||
| assert(buf == nullptr); |
There was a problem hiding this comment.
delete if in L41? check: https://en.cppreference.com/w/cpp/memory/c/free
There was a problem hiding this comment.
delete if in L41? check: https://en.cppreference.com/w/cpp/memory/c/free
done
| { | ||
| // Initialize window function workspaces. | ||
| workspaces.reserve(window_description.window_functions_descriptions.size()); | ||
| auto workspace_num = window_description.window_functions_descriptions.size(); |
There was a problem hiding this comment.
| auto workspace_num = window_description.window_functions_descriptions.size(); | |
| const auto workspace_num = window_description.window_functions_descriptions.size(); |
| for (auto & ws : aggregation_workspaces) | ||
| { | ||
| RowNumber start = frame_start; | ||
| if (need_decrease && checkIfNeedDecrease()) |
There was a problem hiding this comment.
checkIfNeedDecrease() can be called before this loop
There was a problem hiding this comment.
checkIfNeedDecrease()can be called before this loop
done
| append_add = true; | ||
| } | ||
|
|
||
| bool check_need_decrease = checkIfNeedDecrease(); |
There was a problem hiding this comment.
| bool check_need_decrease = checkIfNeedDecrease(); | |
| bool check_need_decrease = false; | |
| if constexpr(need_decrease) | |
| check_need_decrease = checkIfNeedDecrease(); |
| for (auto & ws : aggregation_workspaces) | ||
| { | ||
| RowNumber start = frame_start; | ||
| if (need_decrease && check_need_decrease) |
There was a problem hiding this comment.
| if (need_decrease && check_need_decrease) | |
| if (check_need_decrease) |
|
/cc @guo-shaoge |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: guo-shaoge, windtalker The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
|
/cherrypick release-8.5-20250310-v8.5.1 |
|
@xzhangxian1008: new pull request created to branch DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
What problem does this PR solve?
Issue Number: close #7376
Problem Summary:
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note