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

Merged
merged 10 commits into from
Feb 24, 2025

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.57%. Comparing base (79fa6f0) to head (063c5fe).
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #9124   +/-   ##
=======================================
  Coverage   83.57%   83.57%           
=======================================
  Files         227      227           
  Lines       81647    81652    +5     
=======================================
+ Hits        68237    68242    +5     
  Misses      13410    13410           
Flag Coverage Δ
cubesql 83.57% <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 4 times, most recently from ef0654c to 0b85b0f Compare January 29, 2025 13:05
@KSDaemon KSDaemon force-pushed the fix/drill-down branch 2 times, most recently from e90c9b5 to e51d377 Compare February 17, 2025 22:33
Copy link
Member

@mcheshkov mcheshkov left a comment

Choose a reason for hiding this comment

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

LGTM feature-wise, commented on minor stuff

@KSDaemon KSDaemon merged commit 52a664e into master Feb 24, 2025
74 checks passed
@KSDaemon KSDaemon deleted the fix/drill-down branch February 24, 2025 15:35
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