Conversation
|
@tsl-karlp WRT to this error I Googled that error really quick and found this: ClickHouse/ClickHouse#2652. So my guess is it seems like it's trying to insert your rows in CSV format. So perhaps start by looking for the reason it's trying to insert them that way instead of the normal SQL syntax |
src/metabase/db/spec.clj
Outdated
| ; :subname (str "//" host ":" port "/" db)} | ||
| :subname (str "//" host ":" port)} | ||
| (dissoc opts :host :port :db))) | ||
|
|
There was a problem hiding this comment.
Read the message at the end of this file 😉
|
Thanks, @camsaul ! I don't think Clickhouse itself supports the normal SQL syntax for insertion. The clickhouse-jdbc wrapper, when using PreparedStatements, will POST something like: Can the tests be modified to use PreaparedStatements, or should the Clickhouse tests have their own way of inserting the data? |
|
Yeah it seems you might need to write a custom implementation of |
|
@camsaul :
Is there a good example of doing this in the code? |
|
Not really, all of the other SQL drivers support normal SQL INSERT syntax in some form or another. But It shouldn't be too hard. |
|
guys, thanks for your great work |
|
Unfortunately, we lack the bandwidth and Clojure experience to finish this feature. We'll gladly hand it off to more capable hands now. |
|
I have got my hands on this, and found that the latest code in twosixlabs/metabase@acbb5ab doesn't compile because My 50 cents about docs/developers-guide.md - it is a bit unclear in sense it is missing a straight and sufficient sequence of commands to get the working build from the ground. There is a ./bin/build, but it failed. The main problem was I had a JDK version 10, but I had some other obstacles too, which could have been resolved easier if there was a sequence of commands. Also, the clickhouse-jdbc URI parsing should be fixed, since (as of version 0.1.42) it doesn't allow the hypens in the database name, and (as it looks for me) has a broken the default database name selection logic if it is not specified in URI. |
[Andrew Grigorev: squashed commits from twosixlabs:enhancement/clickhouse_driver] Signed-off-by: Andrew Grigorev <[email protected]>
|
@ei-grad thank you for your work! |
[Andrew Grigorev: squashed commits from twosixlabs:enhancement/clickhouse_driver] Signed-off-by: Andrew Grigorev <[email protected]>
|
Hey all, Thank you for this PR and apologies for the long delay responding. We've recently done some work to support drivers as plugins in Metabase and as of the next release (v0.32) we will be asking driver developers to first publish new drivers in their own repositories (typically named Here is some documentation about publishing a driver as a plugin in a separate repository: https://github.com/metabase/metabase/wiki/Writing-a-Driver:-Packaging-a-Driver-&-Metabase-Plugin-Basics#drivers-shipped-as-3rd-party-plugins Here are two example drivers: https://github.com/metabase/sudoku-driver https://github.com/metabase/crate-driver We still have some work to do on the documentation. You can follow progress and provide feedback on that here: #9348 Thank you. |
|
By the way, I noticed there's another Clickhouse driver: #9469 You all may want to consider consolidating efforts. |
Beginnings of ClickHouse driver. Thanks to @b.mukvich for the initial work!
I had trouble running the tests. Not sure how to run just these new tests.