Summary
test_matview_agg_mv.zip
The Moose migration re-creates a MaterializedView on every run.
Steps To Reproduce:
- Define a MaterializedView using an ARRAY JOIN with tuple projections and stateful functions
- trigger a migration
See attached example.
Expected result
The migration completes and subsequent runs recognize that no schema changes are needed.
Actual result
The MaterializedView is re-created on every run. The CLI states "Migration completed successfully" and the view is successfully created in the ClickHouse database, but it is not captured in the remote_state.json.
Additional information
Moose CLI Version: 0.6.533
OS and version: node:20-bookworm docker container
Summary
test_matview_agg_mv.zip
The Moose migration re-creates a MaterializedView on every run.
Steps To Reproduce:
See attached example.
Expected result
The migration completes and subsequent runs recognize that no schema changes are needed.
Actual result
The MaterializedView is re-created on every run. The CLI states "Migration completed successfully" and the view is successfully created in the ClickHouse database, but it is not captured in the remote_state.json.
Additional information
Moose CLI Version: 0.6.533
OS and version: node:20-bookworm docker container