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(schema-compiler): Fix sql generation for rolling_window queries with multiple time dimensions #9124

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

KSDaemon
Copy link
Member

@KSDaemon KSDaemon commented Jan 22, 2025

This PR fixes the incorrect SQL generation for queries that reference measures with rolling_windows and a few (more than one) time timensions with granularities.

Check List

  • Tests have been run in packages where changes made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

@KSDaemon KSDaemon changed the title fix(schema-compiler): Fix sql generation for rolling_window queries with multiple time dimensions" fix(schema-compiler): Fix sql generation for rolling_window queries with multiple time dimensions Jan 22, 2025
@KSDaemon KSDaemon marked this pull request as ready for review January 22, 2025 17:22
@KSDaemon KSDaemon requested review from a team as code owners January 22, 2025 17:22
@KSDaemon KSDaemon requested a review from a team as a code owner January 23, 2025 12:48
Copy link

codecov bot commented Jan 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.16%. Comparing base (92a4b8e) to head (0b85b0f).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #9124   +/-   ##
=======================================
  Coverage   83.16%   83.16%           
=======================================
  Files         226      226           
  Lines       80047    80052    +5     
=======================================
+ Hits        66570    66576    +6     
+ Misses      13477    13476    -1     
Flag Coverage Δ
cubesql 83.16% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@KSDaemon KSDaemon force-pushed the fix/drill-down branch 3 times, most recently from 120ecf4 to ef0654c Compare January 27, 2025 18:50
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