Skip to content

MaterializedView re-created on every migration loop; missing from remote_state.json #4121

Description

@cm-vgl-bee

Summary

test_matview_agg_mv.zip

The Moose migration re-creates a MaterializedView on every run.

Steps To Reproduce:

  1. Define a MaterializedView using an ARRAY JOIN with tuple projections and stateful functions
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions