Conversation
Why they should be excluded from the metadata?
a7a703c to
1adaeef
Compare
1adaeef to
40e4996
Compare
|
@ei-grad I think this will not fix the issue because the ClickHouse server does not understand "raw" hyphens or dashes in schema names. Escaped: I think it might be worthwhile adjusting the driver in Metabase to use proper escaping or translate "-" into "_". I do not know any Clojure, but I am going to give it a go, based on your branch in PR metabase/metabase#8722 Is there anything else I can help with in the JDBC part? I am eager to get the combination ClickHouse / Metabase going, too. |
|
It's wrong, database name in ClickHouse is a FS directory name, and it looks like it could consist of any characters. Just use backtick quotes around the identifier as the ANSI SQL says for names escaping.
It works. |
|
You are right, escaping works fine, but the Metabase driver will need to know. Sorry for writing in this JDBC driver PR. I just checked it out, ran the Metabase test suite and encountered this error (using prostgres escaping mode). |
|
No problems, you are welcome :). |
serebrserg
left a comment
There was a problem hiding this comment.
Is this still work in progress or can it be merged? I don't see a problem merging it now.
| if (e == "View" || e == "MaterializedView" || e == "Merge" || e == "Distributed" || e == "Null") { | ||
| type = "VIEW"; // some kind of view | ||
| } else if (e == "Memory" || e == "Set" || e == "Join" || e == "Buffer") { | ||
| } else if (e == "Set" || e == "Join" || e == "Buffer") { |
There was a problem hiding this comment.
Could you explain the case for this change?
This is really pretty uncertain where to place Memory engine. I agree that it may be closer to TABLE, but would like to know the specific case.
There was a problem hiding this comment.
Memory engine tables could be used in tests.
There was a problem hiding this comment.
Or like a more-table-like alternative to the buffer tables in data pipeline (where you really don't want to see the buffer tables in the list, but would like to see the memory ones).
Nope, it would be great to merge it I think. |
|
Sorry, I think I have broken your branch while resolving conflicts. |
I came to this changes into clickhouse-jdbc for metabase/metabase#8722.