-
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
Adding new unique key column - fixes #322 #323
Adding new unique key column - fixes #322 #323
Conversation
0a125e8
to
0c1059d
Compare
fixes #322 |
Hi @the4thamigo-uk This #332 was opened a few days ago and handles schema changes. Generally, support in the Thanks |
@BentsiLeviav Ah yes I noticed the legacy fallback, but I was aiming to do a minimal fix. Great that there is a better solution. I suppose if the PR passes a test which is equivalent to https://github.com/ClickHouse/dbt-clickhouse/pull/323/files#diff-f2e636456ac1c2366b5fd10e6beaf3560a946882645f7cee6ba0e0501bf301e3 then it would be fine. |
I see that the table creation passes successfully, but is there a chance there is a mistake in this assertion? |
Yes its interesting to know what the behaviour should be I suppose. I guess you are suggesting row 4 should not be present? |
HMm when I run it I dont see your row 4?
|
@the4thamigo-uk |
24.3.4.147 - but would be surprised if it makes a difference... |
That is really weird. Did you test it with the changes contributed at #332 ? and the incremental query: select
number as col_1,
number + 1 as col_2,
number + 2 as col_3
from numbers(2, 3) yields this: So the append of these 2 groups would be 6 rows: Anyway, the error mentioned in #322 doesn't appear anymore. I'm closing this PR and the issue, feel free to comment/reopen if needed or if something is wrong. |
Yeah weird... anyway, the incremental schema changes is much better. Thanks @canbekley |
Summary
Proposed solution to support adding new columns that are also added to the unique_key.