-
Notifications
You must be signed in to change notification settings - Fork 100
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
Table and Column Comments set up misbehaviour #295
Comments
The query looks correct, I believe it should be a bug created in ClickHouse itself, not in dbt adapter |
Agree, but two points:
|
Have you found or reported the bug to ClickHouse? It is the very active, good chance it is fixed. If not, please let me know as I want to report it. |
ClickHouse/ClickHouse#55720, although I would have though the fix would be in 24.2. Is this is ClickHouse Cloud instance? |
Interesting. We are running an ever so slightly older version than when the bug appears. We see still see the issue that only the communicator node gets the comments and it is missing from all others. So no proper DDL. Hmm |
Describe the bug
Testing v1.7.7 Community PRs
exacly: allows to add a comment in table's or view's metadata by @dstsimokha in #228
We've found, that generated ALTER TABLE SQL "ignores" ON CLUSTER clause and all changes done only on connection node.
Clickhouse and DBT does not return any errors.
Steps to reproduce
5.1. columns comments
hostName |database |name |comment
clickhouse-01|dbt__core|some_column_name |some_column_name description
clickhouse-02|dbt__core|some_column_name |
clickhouse-01|dbt__core|some_id |some_id description
clickhouse-02|dbt__core|some_id |
clickhouse-01|dbt__core|some_other_column_name |some_other_column_name description
clickhouse-02|dbt__core|some_other_column_name |
5.2. tables comments
hostName |database |name |comment
-----------------+---------+------------------+-------------------------------+
clickhouse-01|dbt__core|test_comment_model |test_comment_model description
clickhouse-02|dbt__core|test_comment_model |
Expected behaviour
Comments should be on all nodes
Fix proposal
Split single command to two
that makes clickhouse behave as expected
dbt and/or ClickHouse server logs
Configuration
Environment
ClickHouse server
** <allow_experimental_live_view>1</allow_experimental_live_view>
** <allow_experimental_nlp_functions>1</allow_experimental_nlp_functions>
** <distributed_ddl_task_timeout>180</distributed_ddl_task_timeout>
** <allow_nondeterministic_mutations>1</allow_nondeterministic_mutations>
The text was updated successfully, but these errors were encountered: