-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Remove support for legacy driver and upgrade to 0.4.1 in ClickHouse connector #16193
Conversation
Hi @ebyhr, can we bump to 0.4.1? Although it's just out for 2 days, but it fixed a few critical bugs found in 0.4.0 like 1) incorrect nested array value; 2) broken serde for Apart from that, I think there's one breaking change worthy of mention here. Starting from 0.4.0, to support binary string(mapping |
3d6f0de
to
2ca0246
Compare
@zhicwu Thanks for sharing the information! Changed to 0.4.1 and enabled |
|
2ca0246
to
09ef7a2
Compare
Thank you and apologize for additional changes at your end. Does it make sense to you to map |
@zhicwu What about read logic? Reading |
I'm not joking, but is Looks like the mapped type in ClickHouse doesn't matter when reading/writing varbinary in trino, according to code below: trino/plugin/trino-base-jdbc/src/main/java/io/trino/plugin/jdbc/StandardColumnMappings.java Lines 348 to 356 in fba39d6
|
@zhicwu Mapping to |
plugin/trino-clickhouse/src/main/java/io/trino/plugin/clickhouse/ClickHouseClientModule.java
Outdated
Show resolved
Hide resolved
plugin/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/TestingClickHouseServer.java
Outdated
Show resolved
Hide resolved
plugin/trino-clickhouse/src/main/java/io/trino/plugin/clickhouse/ClickHouseClient.java
Show resolved
Hide resolved
plugin/trino-clickhouse/src/main/java/io/trino/plugin/clickhouse/ClickHouseClientModule.java
Show resolved
Hide resolved
The escape() method doesn't exist in new JDBC driver version.
09ef7a2
to
1cbd72c
Compare
Addressed comments. |
1cbd72c
to
73c63b3
Compare
@@ -95,6 +95,7 @@ | |||
import java.util.concurrent.atomic.AtomicReference; | |||
import java.util.function.BiFunction; | |||
|
|||
import static com.clickhouse.client.ClickHouseValues.convertToQuotedString; |
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.
Do we have this API in the legacy version ?
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.
In this case can we squash with the next commit - I'm happy with both the cases.
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.
It existed, but the package was changed in the new version.
Description
ResultSetMetaData
forquery
pass-through table functionFixes #16188
Release notes
(x) Release notes are required, with the following suggested text: