You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bugclientModule: the client (client-v2; with legacy: the v1 client)documentationImprovements or additions to documentationduplicateenvironmentArea: build, platforms, packages, one server version or one third-party tooljdbcModule: the JDBC driver (jdbc-v2; with legacy: the v1 driver)
I get an error when trying to use this on windows with compression on:
Failed to open resource /win/amd64/libzstd-jni-1.5.7-23.dll as stream: Unsupported OS/arch, cannot find /win/amd64/libzstd-jni-1.5.7-23.dll or load libzstd-jni-1.5.7-23.dll from system libraries.
I am using this jar: clickhouse-jdbc-0.11.1-all-dependencies.jar, and when looking into it, it has linux and darwin directories with libszstd so-s/dylib for linux / mac, but it does not have them for windows
Recommendation: Close — duplicate of #3175
Same cause and same error as #3175, where a maintainer answered on 2026-10-14 that the limitation will be documented. #3175 stays open.
Status on main: Reproduced on main — the all-dependencies jar built from main has no Windows zstd library, and a query with default settings loads that library.
Breaking change: No.
Duplicates / related: No others.
Workaround: Add compress=false to the JDBC URL: the query then does not load the zstd library.
Analysis:client-v2/pom.xml:65 takes zstd-jni with the cloud classifier, which has libraries only for linux/amd64, linux/aarch64, and darwin/aarch64, and the shaded jars copy them. With compress=true (default), the server sends ZSTD blocks (the default network_compression_method), so CompressedBlockInputStream.java:156 needs the library. docs/integration-client.md:1314 tells users to call disableNativeCompression(true) when JNI libraries cannot load, but that option changes only LZ4 (Client.java:234).
Output on main (8480ca001), ClickHouse 26.11.2.4, with clickhouse-jdbc-0.12.0-rc1-SNAPSHOT-all-dependencies.jar built from main:
resource win/amd64/libzstd-jni-1.5.7-23.dll: missing
resource darwin/x86_64/libzstd-jni-1.5.7-23.dylib: missing
resource linux/amd64/libzstd-jni-1.5.7-23.so: found
load on Windows: java.lang.UnsatisfiedLinkError: Failed to open resource /win/amd64/libzstd-jni-1.5.7-23.dll as stream:
Unsupported OS/arch, cannot find /win/amd64/libzstd-jni-1.5.7-23.dll or load zstd-jni-1.5.7-23 from system libraries. …
compress=false: server 26.11.2.4, zstd library loaded: false
default settings: server 26.11.2.4, zstd library loaded: true
Automated triage by Polyglot AI. A maintainer makes the final decision.
bugclientModule: the client (client-v2; with legacy: the v1 client)documentationImprovements or additions to documentationduplicateenvironmentArea: build, platforms, packages, one server version or one third-party tooljdbcModule: the JDBC driver (jdbc-v2; with legacy: the v1 driver)
Activity
chernser commentedon Nov 11, 2026
Thank you for reporting this!
We will look into it soon.
polyglotAI-bot commentedon Nov 26, 2026
Recommendation: Close — duplicate of #3175
Same cause and same error as #3175, where a maintainer answered on 2026-10-14 that the limitation will be documented. #3175 stays open.
main: Reproduced on main — theall-dependenciesjar built frommainhas no Windows zstd library, and a query with default settings loads that library.compress=falseto the JDBC URL: the query then does not load the zstd library.Analysis:
client-v2/pom.xml:65takeszstd-jniwith thecloudclassifier, which has libraries only forlinux/amd64,linux/aarch64, anddarwin/aarch64, and the shaded jars copy them. Withcompress=true(default), the server sends ZSTD blocks (the defaultnetwork_compression_method), soCompressedBlockInputStream.java:156needs the library.docs/integration-client.md:1314tells users to calldisableNativeCompression(true)when JNI libraries cannot load, but that option changes only LZ4 (Client.java:234).Reproduction: complete program and output
Output on
main(8480ca001), ClickHouse 26.11.2.4, withclickhouse-jdbc-0.12.0-rc1-SNAPSHOT-all-dependencies.jarbuilt frommain:Automated triage by Polyglot AI. A maintainer makes the final decision.