Skip to content

feat(mv): add refreshPolicy support for Materialized Views#25

Merged
rederik76 merged 1 commit into
mainfrom
feature/mv-refresh-policy
Mar 20, 2026
Merged

feat(mv): add refreshPolicy support for Materialized Views#25
rederik76 merged 1 commit into
mainfrom
feature/mv-refresh-policy

Conversation

@haillew

@haillew haillew commented Mar 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds support for the refreshPolicy parameter on Materialized Views, allowing users to control how MVs are refreshed.

  • Adds refreshPolicy field to the MV dataflow spec (auto, incremental, incremental_strict, full)
  • Dynamically selects @dp.materialized_view() decorator when refreshPolicy is set (required to pass the refresh_policy kwarg)
  • Adds JSON schema validation for refreshPolicy values
  • Adds a sample MV demonstrating incremental_strict with disableOperationalMetadata
  • Updates feature and reference documentation

Closes #24

Note: refresh_policy is a beta parameter requiring DBR 17.3+.

Adds support for the `refresh_policy` parameter on Materialized Views
(beta, requires DBR 17.3+). When `refreshPolicy` is set in the spec,
the framework uses `@dp.materialized_view()` instead of `@dp.table()`.

Closes #24

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rederik76 rederik76 changed the title feat: add refreshPolicy support for Materialized Views add refreshPolicy support for Materialized Views Mar 19, 2026
@rederik76 rederik76 changed the title add refreshPolicy support for Materialized Views feat(mv): add refreshPolicy support for Materialized Views Mar 20, 2026
@rederik76 rederik76 self-requested a review March 20, 2026 02:21

@rederik76 rederik76 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approved

@rederik76 rederik76 merged commit 063cf00 into main Mar 20, 2026
@rederik76 rederik76 deleted the feature/mv-refresh-policy branch March 20, 2026 03:09
haillew added a commit that referenced this pull request Apr 10, 2026
Adds support for the `refresh_policy` parameter on Materialized Views
(beta, requires DBR 17.3+). When `refreshPolicy` is set in the spec,
the framework uses `@dp.materialized_view()` instead of `@dp.table()`.

Closes #24
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.

[FEATURE]: add refresh_policy support for Materialized Views

2 participants