Skip to content
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

executor: do not return first row until the frame is completed. (#12480) #12660

Conversation

SunRunAway
Copy link
Contributor

@SunRunAway SunRunAway commented Oct 12, 2019

Automated cherry pick of #12480 on release-3.0.

What problem does this PR solve?

Fixes #12415.

What is changed and how it works?

In previous implementation, windowExec returns a chunk when a frame is fetched but not evaluated. After rewriting, windowExec returns a chunk after a frame is finished evaluating.

It makes the code simpler, and all the implementation of aggregation functions can reference the data in the frame. The bad side is it will increase the time of meeting first row.

I'll send a following PR(#12481) to revert the changes of copying data in #11678, if this is accepted by reviewers.

Check List

Tests

Code changes

  • None

Side effects

  • It will increase the time of meeting first row

Related changes

  • None

Release note

  • Fix a memory reference bug in window function.

@SunRunAway SunRunAway added sig/execution SIG execution needs-cherry-pick-3.0 status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug. labels Oct 12, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Oct 12, 2019

Sorry @SunRunAway, you don't have permission to trigger auto merge event on this branch.

@SunRunAway SunRunAway removed needs-cherry-pick-3.0 status/LGT2 Indicates that a PR has LGTM 2. status/can-merge Indicates a PR has been approved by a committer. labels Oct 12, 2019
@zz-jason
Copy link
Member

@SunRunAway please fill the PR description the same as the original PR #12480

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zz-jason zz-jason added the status/LGT1 Indicates that a PR has LGTM 1. label Oct 13, 2019
Copy link
Contributor

@alivxxx alivxxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alivxxx alivxxx added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Oct 14, 2019
@ngaut ngaut added the status/can-merge Indicates a PR has been approved by a committer. label Oct 14, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Oct 14, 2019

/run-all-tests

@sre-bot sre-bot merged commit 6724378 into pingcap:release-3.0 Oct 14, 2019
@SunRunAway SunRunAway deleted the automated-cherry-pick-of-#12480-upstream-release-3.0 branch October 14, 2019 03:24
@sre-bot
Copy link
Contributor

sre-bot commented Oct 14, 2019

cherry pick to release-3.1 in PR #12679

@sre-bot
Copy link
Contributor

sre-bot commented Oct 14, 2019

cherry pick to release-3.0 failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants