-
Notifications
You must be signed in to change notification settings - Fork 114
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: incremental on cluster clause #166
Conversation
What is the point of replicating a temporary table? I think we would have to update all of the temporary table operations (including the cleanup) as ON CLUSTER and the behavior would have to be different with ReplicatedMergeTrees versus a regular MergeTrees. |
I might be misunderstanding the process but that table is exchanged and should be replicated?
|
Sorry about that, you're correct, this particular table is not actually "temporary". However, all of the other operations involved are not I think I'm okay with merging this if you've validated that the whole incremental materialization process works for ReplicatedMergeTrees (although automated tests would be really nice) and we have at least documented that ON CLUSTER must be combined with *ReplicatedMergeTrees for incremental materialization. (Finally just as an FYI it looks like @gladkikhtutu is working on the related problem of incremental materialization of Distributed Tables - which also will involve |
I can add that we already use on cluster clause for intermediate table, for example here due to this statement. Only I would suggest using the same method everywhere ( |
I'm happy to close this and use my own fork for now. I can wait for distributed incremental materialization changes. Thanks all! |
Missing
ON CLUSTER
clause when creating incremental temporary replicated table.Error;
Debug sql
Example config;
What this fix does
Changes
to
If cluster has been set in config.