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

Runtime: metrics_sql fix for cases when date_trunc/operation is done on dimensions #4461

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

k-anshul
Copy link
Member

@k-anshul k-anshul commented Mar 28, 2024

A query like SELECT date_trunc('day', __time) AS day, requests FROM auction previously got translated to SELECT date_trunc('day', __time) AS day, count(*) FROM mv GROUP BY __time

Now it is correctly translated to SELECT date_trunc('day', __time) AS day, count(*) FROM mv GROUP BY date_trunc('day', __time)

@k-anshul k-anshul self-assigned this Mar 28, 2024
@begelundmuller begelundmuller merged commit 26d96d4 into main Mar 28, 2024
4 checks passed
@begelundmuller begelundmuller deleted the fix_metrics_sql branch March 28, 2024 11:59
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