Skip to content

Switch druid_cube materialization SQL generation to v3 build path + support FULL strategy#2102

Merged
shangyian merged 7 commits into
DataJunction:mainfrom
shangyian:mat-v2-full
May 11, 2026
Merged

Switch druid_cube materialization SQL generation to v3 build path + support FULL strategy#2102
shangyian merged 7 commits into
DataJunction:mainfrom
shangyian:mat-v2-full

Conversation

@shangyian
Copy link
Copy Markdown
Collaborator

Summary

This PR replaces the v2 get_measures_query call in build_cube_materialization with the v3 build_measures_sql builder, bringing cube materialization SQL generation in line with the rest of the v3 query path. It adds two adapters: _v3_grain_group_to_measures_query and _v3_col_to_model_column that bridge v3's GrainGroupSQL output into the existing MeasuresMaterialization shape, so that downstream combiner/Druid config logic is unchanged.

It also fixes the FULL strategy: temporal partition filters are now only injected for INCREMENTAL_TIME; FULL materialization runs scan the full upstream as expected. Cube-level static filters still apply for both strategies.

Test Plan

  • PR has an associated issue: #
  • make check passes
  • make test shows 100% unit test coverage

Deployment Plan

@netlify
Copy link
Copy Markdown

netlify Bot commented May 8, 2026

Deploy Preview for thriving-cassata-78ae72 ready!

Name Link
🔨 Latest commit 0e48870
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/6a024bf2a7e6a60008bd1284
😎 Deploy Preview https://deploy-preview-2102--thriving-cassata-78ae72.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@shangyian shangyian marked this pull request as ready for review May 11, 2026 22:04
@shangyian shangyian merged commit 4f805c7 into DataJunction:main May 11, 2026
21 checks passed
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