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

clickhouse: allow restoring experimental MergeTree settings #263

Closed
wants to merge 1 commit into from

Conversation

aris-aiven
Copy link
Contributor

The two settings were introduced between v23.8 and v24.3. They are needed when restoring by clusters that have defined them at the table level.

@aris-aiven aris-aiven force-pushed the aris-experimental-settings-restore branch from 4abaca9 to e2098b3 Compare December 5, 2024 20:52
The two settings were introduced between v23.8 and v24.3. They are needed when
restoring by clusters that have defined them at the table level.
@aris-aiven aris-aiven force-pushed the aris-experimental-settings-restore branch from e2098b3 to 0d037bc Compare December 5, 2024 20:58
@aris-aiven aris-aiven marked this pull request as ready for review December 5, 2024 21:01
@aris-aiven aris-aiven requested a review from a team December 5, 2024 21:01
@@ -685,6 +685,8 @@ def _create_dbs(client: ClickHouseClient) -> Iterator[Awaitable[None]]:
b"SET allow_hyperscan=true",
b"SET allow_simdjson=true",
b"SET allow_deprecated_syntax_for_merge_tree=true",
b"SET allow_experimental_block_number_column=true",
b"SET allow_experimental_replacing_merge_with_cleanup=true",
Copy link
Contributor

Choose a reason for hiding this comment

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

I do not think this helps. Those are merge tree settings and you are setting them as query level settings. Those settings do not exist and should cause UNKNOWN_SETTING error.

But on the other hand, table settings should have been preserved and should not have caused any error... I do not yet understand it...

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True, these settings should have been set at the table level.

@aris-aiven aris-aiven closed this Dec 9, 2024
@aris-aiven aris-aiven deleted the aris-experimental-settings-restore branch December 9, 2024 11:52
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.

2 participants