-
Notifications
You must be signed in to change notification settings - Fork 522
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
Update deprecated query in createVersionTableSQL for new ClickHouse versions since 22.7 #408
Conversation
…ersions since 22.7
dialect.go
Outdated
) Engine = MergeTree(date, (date), 8192)`, TableName()) | ||
) | ||
ENGINE = MergeTree() | ||
ORDER BY (version_id)`, TableName()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why change the sorting key from date
to version_id
?
The sorting keys are either autoincrementing id's or default date at the time of insert.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
@Systemnick Can you also bump the ClickHouse version to the latest ( goose/internal/testdb/clickhouse.go Line 19 in 5a6c34e
Thanks! This should fix those pesky errors:
|
@mfridman, done! Also, I couldn't find setting allow_deprecated_syntax_for_merge_tree to true in tests, as described in issue. |
No worries, the older syntax didn't work with newer versions. But now it should be okay. lgtm. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this up!
Fixes #392