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

[fix] bug in how AVG is decomposed into measures #1299

Merged
merged 6 commits into from
Feb 1, 2025

Conversation

anhqle
Copy link
Contributor

@anhqle anhqle commented Jan 31, 2025

Test Plan

I edited decompose_test.py

Note: make check passed locally after making a bunch of small edits. I'm not sure why it's failing here, and why the changes need to be made to unrelated alembic files in the first place. Suggestions welcome!

Copy link

netlify bot commented Jan 31, 2025

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit 7d79945
🔍 Latest deploy log https://app.netlify.com/sites/thriving-cassata-78ae72/deploys/679d79f66eb69b000868a79f

In calculating the COUNT, if we use COUNT(1), we will get the COUNT of another column, which may have a differet number of non-null values than the one we're interested in
@anhqle anhqle force-pushed the fix-pre-agg-count-bug branch from 61c232d to dd54bc2 Compare January 31, 2025 06:09
@anhqle anhqle requested a review from shangyian January 31, 2025 06:33
@anhqle anhqle marked this pull request as ready for review January 31, 2025 06:33
Copy link
Contributor

@shangyian shangyian left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this 🎉

@anhqle anhqle force-pushed the fix-pre-agg-count-bug branch from f7b8221 to 9363cf7 Compare January 31, 2025 17:57
@shangyian shangyian force-pushed the fix-pre-agg-count-bug branch from 9363cf7 to f7b8221 Compare January 31, 2025 17:58
@anhqle anhqle force-pushed the fix-pre-agg-count-bug branch from f7b8221 to b0dfb17 Compare January 31, 2025 22:50
@shangyian shangyian merged commit 31d6086 into main Feb 1, 2025
16 checks passed
@shangyian shangyian deleted the fix-pre-agg-count-bug branch February 1, 2025 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants