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

physicalplan: add support for multi-stage execution of regr_avgx, regr_avgy, regr_intercept, regr_r2, and regr_slope aggregate functions. #76007

Merged
merged 1 commit into from
Feb 9, 2022

Conversation

mneverov
Copy link
Contributor

@mneverov mneverov commented Feb 4, 2022

physicalplan: add support for multi-stage execution of regr_avgx, regr_avgy,
regr_intercept, regr_r2, and regr_slope aggregate functions.

See #58347.

Release note (performance improvement): regr_avgx, regr_avgy, regr_intercept,
regr_r2, and regr_slope aggregate functions are now evaluated more efficiently
in a distributed setting

@mneverov mneverov requested a review from a team as a code owner February 4, 2022 06:01
@blathers-crl
Copy link

blathers-crl bot commented Feb 4, 2022

Thank you for contributing to CockroachDB. Please ensure you have followed the guidelines for creating a PR.

My owl senses detect your PR is good for review. Please keep an eye out for any test failures in CI.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

@blathers-crl blathers-crl bot added the O-community Originated from the community label Feb 4, 2022
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@blathers-crl
Copy link

blathers-crl bot commented Feb 4, 2022

Thank you for updating your pull request.

My owl senses detect your PR is good for review. Please keep an eye out for any test failures in CI.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

@mneverov mneverov marked this pull request as draft February 5, 2022 16:41
@mneverov mneverov changed the title physicalplan: add support for multi-stage execution of regr_avgx, regr_avgy WIP: physicalplan: add support for multi-stage execution of regr_avgx, regr_avgy Feb 5, 2022
@mneverov mneverov changed the title WIP: physicalplan: add support for multi-stage execution of regr_avgx, regr_avgy WIP: physicalplan: add support for multi-stage execution of regr_avgx, regr_avgy, regr_intercept, regr_r2, and regr_slope aggregate functions. Feb 6, 2022
Copy link
Contributor Author

@mneverov mneverov left a comment

Choose a reason for hiding this comment

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

@yuzefovich can you help me out with the changes in zone?
When I run testlogic with rewrite flag it modifies the zone test file, and the ccl tests are failing with the changes. I can adjust zone test expectations to make tests pass but the next rewrite will override the file.
There are no changes on master branch when I run testlogic with rewrite.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

Copy link
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

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

Hm, when I rewrite with your commit reverted (on 7c4e234), I do see changes in zone file too. Clearly, your change is not to blame. My guess is that we have an issue with -rewrite flag when retry option is specified for the queries, so I'd just revert the changes in zone file in your PR.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

…r_avgy,

regr_intercept, regr_r2, and regr_slope aggregate functions.

See cockroachdb#58347.

Release note (performance improvement): regr_avgx, regr_avgy, regr_intercept,
regr_r2, and regr_slope aggregate functions are now evaluated more efficiently
in a distributed setting
@mneverov mneverov marked this pull request as ready for review February 9, 2022 18:37
Copy link
Contributor Author

@mneverov mneverov left a comment

Choose a reason for hiding this comment

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

thanks, reverted the changes in zone file.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

@mneverov mneverov changed the title WIP: physicalplan: add support for multi-stage execution of regr_avgx, regr_avgy, regr_intercept, regr_r2, and regr_slope aggregate functions. physicalplan: add support for multi-stage execution of regr_avgx, regr_avgy, regr_intercept, regr_r2, and regr_slope aggregate functions. Feb 9, 2022
Copy link
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

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

Nice, thanks! :lgtm:

bors r=yuzefovich

Reviewed 8 of 9 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @mneverov)

@craig
Copy link
Contributor

craig bot commented Feb 9, 2022

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-community Originated from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants