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

Fix support for Metabase CI and future-proof DDL statements #273

Merged
merged 10 commits into from
Oct 17, 2024

Conversation

crisptrutski
Copy link
Contributor

@crisptrutski crisptrutski commented Sep 30, 2024

Summary

This PR started as future proofing for an upcoming HoneySQL update which requires explicit quoting of identifiers in some cases.

As part of this work I got the main Metabase upload's test suite running against the driver. This required some updates to the driver to track interface changes, and also revealed some small bugs, which have also been fixed.

NOTE: this version will not be safe for v50 without further changes. Confirmed that this works with the upcoming version of v50.

Checklist

  • There is test coverage for these changes in the main metabase.upload test suite.


(defmethod sql.tx/pk-sql-type :clickhouse [_] "Int32")

(defmethod sql.tx/add-fk-sql :clickhouse [& _] nil)

(defmethod sql.tx/session-schema :clickhouse [_] "default")

(defmethod tx/supports-time-type? :clickhouse [_driver] false)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is replaced by the :test/time-type feature.

@slvrtrn
Copy link
Collaborator

slvrtrn commented Oct 1, 2024

NOTE: this version will not be safe for v50 without further changes.

Shall we wait until 0.51 and merge after that?

@crisptrutski
Copy link
Contributor Author

Shall we wait until 0.51 and merge after that?

I think after metabase/metabase#48233 merges we'll be good to release after its following point release. Will rerun the suite locally after the backport is merged.

@crisptrutski
Copy link
Contributor Author

crisptrutski commented Oct 2, 2024

The upload test suite is fully passing with this change on v50 now 😄

(The changes to test/data need to be rolled back to run them though)

@slvrtrn slvrtrn changed the base branch from master to 0.51.x October 17, 2024 15:33
@slvrtrn slvrtrn merged commit cccc0ff into ClickHouse:0.51.x Oct 17, 2024
0 of 2 checks passed
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