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: replicated database materializations #407

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

canbekley
Copy link
Contributor

Summary

Previously, table and view materializations wouldn't work with a Replicated database configured, as they would run ON CLUSTER statements for some of the ddl's. This is not allowed in replicated databases and would lead to the following error:

DB::Exception: It's not initial query. ON CLUSTER is not allowed for Replicated database. (INCORRECT_QUERY) (version 24.11.1.2557 (official build)

This mr fixes these issues by adding conditions for on cluster statements with replicated databases.

Checklist

  • Unit and integration tests covering the common scenarios were added
  • A human-readable description of the changes was provided to include in CHANGELOG

@canbekley canbekley changed the title Fix/replicated database materializations fix: replicated database materializations Jan 13, 2025
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