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

COALESCE selected expressions to capture all values #1210

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

shangyian
Copy link
Contributor

Summary

For metrics SQL generation, we should COALESCE the selected expressions after doing a FULL OUTER JOIN on the shared dimensions of the metrics. This is because the intention of the FULL JOIN is to be able to bring in all possible dimension values, and not coalescing means that we miss out on cases with null values for one set of metrics, but non-null values for a different set of metrics.

Test Plan

Locally + unit tests

Deployment Plan

Copy link

netlify bot commented Oct 22, 2024

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit 63d2b1f
🔍 Latest deploy log https://app.netlify.com/sites/thriving-cassata-78ae72/deploys/6717b99ad91c7b0008359e44

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.

1 participant