Title: JDBC driver does not support compressed IPC streams (ZSTD, LZ4) [FlightSQL] · Issue #926 · apache/arrow-java · GitHub
Open Graph Title: JDBC driver does not support compressed IPC streams (ZSTD, LZ4) [FlightSQL] · Issue #926 · apache/arrow-java
X Title: JDBC driver does not support compressed IPC streams (ZSTD, LZ4) [FlightSQL] · Issue #926 · apache/arrow-java
Description: Describe the bug, including details regarding any error messages, version, and platform. Component: Flight SQL JDBC Driver Version: 18.3.0 The flight-sql-jdbc-driver shaded JAR does not include compression support, causing connection fai...
Open Graph Description: Describe the bug, including details regarding any error messages, version, and platform. Component: Flight SQL JDBC Driver Version: 18.3.0 The flight-sql-jdbc-driver shaded JAR does not include com...
X Description: Describe the bug, including details regarding any error messages, version, and platform. Component: Flight SQL JDBC Driver Version: 18.3.0 The flight-sql-jdbc-driver shaded JAR does not include com...
Opengraph URL: https://github.com/apache/arrow-java/issues/926
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JDBC driver does not support compressed IPC streams (ZSTD, LZ4) [FlightSQL]","articleBody":"### Describe the bug, including details regarding any error messages, version, and platform.\n\n**Component:** Flight SQL JDBC Driver\n**Version:** 18.3.0\n\nThe `flight-sql-jdbc-driver` shaded JAR does not include compression support, causing connection failures when the Flight SQL server sends compressed IPC streams using ZSTD or LZ4 compression.\n\n### Expected Behavior\nThe JDBC driver should be able to handle compressed IPC streams from Flight SQL servers, similar to how the direct Flight SQL client (`flight-sql` artifact) handles them.\n\n### Actual Behavior\nConnection fails with one of these errors depending on compression type used by server:\n\n**ZSTD compression:**\n```\njava.lang.IllegalArgumentException: Please add arrow-compression module to use CommonsCompressionFactory for ZSTD\nat org.apache.arrow.driver.jdbc.shaded.org.apache.arrow.vector.compression.NoCompressionCodec$Factory.createCodec(NoCompressionCodec.java:63)\n```\n\n**LZ4 compression:**\n```\nArrow error: Invalid argument error: lz4 IPC compression requires the lz4 feature\n```\n\n### Steps to Reproduce\n\n1. Set up a Flight SQL server that uses compression (ZSTD or LZ4)\n2. Try to connect using the JDBC driver:\nString url = \"jdbc:arrow-flight-sql://localhost:5127?useEncryption=false\";\nConnection conn = DriverManager.getConnection(url);\nStatement stmt = conn.createStatement();\nResultSet rs = stmt.executeQuery(\"SELECT * FROM table\");\n// Fails with compression error\n### Workaround\nCurrently, either:\n1. Disable compression on the server side, OR\n2. Use the direct Flight SQL client API (`flight-sql` and `flight-core` artifacts) instead of JDBC\n\n### Additional Context\n- Direct Flight SQL client works fine with compression\n- This affects any Flight SQL server that enables compression by default\n- JDBC drivers should be able to handle all protocol features transparently\n\n\n\n\n\n\n","author":{"url":"https://github.com/aarshivv","@type":"Person","name":"aarshivv"},"datePublished":"2025-12-02T17:18:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/926/arrow-java/issues/926"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:19dc7eb1-3927-b646-db49-18be93b3413a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E5C:E58C0:22FB4C7:2C87F86:6991B061 |
| html-safe-nonce | ad5d795b1c68856bf787626c63930a98d93ddfe07a2ba342db14615d02f5d277 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTVDOkU1OEMwOjIyRkI0Qzc6MkM4N0Y4Njo2OTkxQjA2MSIsInZpc2l0b3JfaWQiOiI2OTE3NDk5ODI3OTI5NTkxOTA1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e850558717940c7d20ae10a087739ef48dccae38232c86e57ce6a00e57d778a2 |
| hovercard-subject-tag | issue:3686814628 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/arrow-java/926/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4bd4af54d9bbb3445663e0d645db1b8ed00f471244c60d6fda083ba6d7efdc8e/apache/arrow-java/issues/926 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4bd4af54d9bbb3445663e0d645db1b8ed00f471244c60d6fda083ba6d7efdc8e/apache/arrow-java/issues/926 |
| og:image:alt | Describe the bug, including details regarding any error messages, version, and platform. Component: Flight SQL JDBC Driver Version: 18.3.0 The flight-sql-jdbc-driver shaded JAR does not include com... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aarshivv |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/arrow-java git https://github.com/apache/arrow-java.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 893682219 |
| octolytics-dimension-repository_nwo | apache/arrow-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 893682219 |
| octolytics-dimension-repository_network_root_nwo | apache/arrow-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width