-
Notifications
You must be signed in to change notification settings - Fork 95
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
Support urls with underscores #23
Comments
How to solve this problem ? |
the problem seem to come from a bug/strictness in java.net.URI from jdk ... java.net.URI are used in https://github.com/ClickHouse/clickhouse-jdbc/blob/master/clickhouse-jdbc/src/main/java/ru/yandex/clickhouse/ClickhouseJdbcUrlParser.java#L42 to decode jdbc url... two bug are in jdk : https://bugs.openjdk.org/browse/JDK-8221675 and https://bugs.openjdk.org/browse/JDK-8019345 and https://stackoverflow.com/questions/22203111/is-javas-uri-resolve-incompatible-with-rfc-3986-when-the-relative-uri-contains. in fact java.net.URI are based on old dns name RFC2396 ... that had been updated after in RFC3986.... also spring had the same pb... spring-projects/spring-framework#24439 the good solution while be to fix in java.net.URI... maybe in jdk18+... the other solution are to use alternative URI parse in clickhouse jdbc driver like in spring... with org.springframework.web.util.UriComponentsBuilder... i've opened an issue on clickhouse-jdbc about that : ClickHouse/clickhouse-java#1107 |
i'found the message "port is missed or wrong" are throw by old clickhouse-jdbc 0.3.1 version.... an update of the clickhouse-jdbc dependancy to and use
|
Should be fixed in the upcoming 0.9.0 release as it will include JDBC driver |
Should be fixed in 0.9.0 |
On the Metabase db configuration page, if the host contains underscores, e.g.:
clickhouse_app
, connection attempt always results inport is missed or wrong
. With hosts without underscores, it works like a correctly.Metabase log:
Driver version: 0.3 https://github.com/enqueue/metabase-clickhouse-driver/releases/download/0.3/clickhouse.metabase-driver.jar
Metabase version: v0.32.10
The text was updated successfully, but these errors were encountered: