forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 0
[FLINK]Support processing time tumble window for nexmark q12 #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
KevinyhZou
wants to merge
17
commits into
bigo-sg:gluten-0530
Choose a base branch
from
KevinyhZou:support_proc_time_window
base: gluten-0530
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
d68f9b1
support proc time window
KevinyhZou 4a98cee
support proctime window
KevinyhZou 77a93ef
support proctime window
KevinyhZou b4f7e4a
remove useless changes
KevinyhZou 8ec3318
remove useless changes
KevinyhZou 8afaa93
remove useless changes
KevinyhZou b84636a
Merge branch 'gluten-0530' into support_proc_time_window
KevinyhZou 1a3c29c
fix expr
KevinyhZou 665ac09
remove useless changes
KevinyhZou 873a0eb
fix 111
KevinyhZou e216597
fix compile err
KevinyhZou 378494c
Merge branch 'gluten-0530' into support_proc_time_window
KevinyhZou a1123b6
fix proctime window trigger mutilple times for one key
KevinyhZou 27903d3
fix111
KevinyhZou 0130991
xxx111
KevinyhZou 3f4e7a7
fix1111
KevinyhZou d630c85
fix 111
KevinyhZou File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -210,10 +210,9 @@ void StreamingAggregation::assignGroups() { | |
| auto numInput = input_->size(); | ||
|
|
||
| inputGroups_.resize(numInput); | ||
|
|
||
| // Look for the end of the last group. | ||
| vector_size_t index = 0; | ||
| if (prevInput_) { | ||
| if (prevInput_ && numGroups_ > 0) { | ||
| auto prevIndex = prevInput_->size() - 1; | ||
| auto* prevGroup = groups_[numGroups_ - 1]; | ||
| for (; index < numInput; ++index) { | ||
|
|
@@ -334,10 +333,9 @@ RowVectorPtr StreamingAggregation::getOutput() { | |
| evaluateAggregates(); | ||
|
|
||
| RowVectorPtr output; | ||
|
|
||
| if (numGroups_ > minOutputBatchSize_) { | ||
| if (numGroups_ >= minOutputBatchSize_) { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这里有必要改?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 对,velox 里面minOutputBatchSize 最小只能取1, |
||
| output = createOutput( | ||
| std::min(numGroups_ - 1, static_cast<size_t>(maxOutputBatchSize_))); | ||
| std::min(numGroups_, static_cast<size_t>(maxOutputBatchSize_))); | ||
| } | ||
|
|
||
| prevInput_ = input_; | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为何要加这个条件?