Repository navigation
fix(kernel): honor the Arrow compression setting - #1081
aakash-saravanan-db wants to merge 4 commits into
Conversation
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 High
Needs changes: 1 high concern. The forwarding and its test look correct, but the unconditional call breaks query execution on any kernel wheel the current ^1.5.0 floor still allows.
4ed87de to
29cb4bb
Compare
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 High · 2 Low
Needs changes: 1 high concern. The new statement call is unguarded while the kernel dependency floor (^1.5.0) may lack the method, so every kernel execute could fail on published wheels. Bumping KERNEL_REV only changes the CI source.
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 High
One medium concern: the change is correct and tested, but it calls the new kernel API without any check while the dependency floor still allows older wheels. The PR description says this is a known merge blocker.
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 High · 1 Low · 1 Nit
Changes requested — 1 high concern. The new statement call has no check for whether the installed kernel wheel supports it, and the current ^1.5.0 dependency floor allows wheels that don't, so every kernel execute could fail until the floor is bumped.
Other findings
- ⚪ Nit — The changelog entry doesn't name the kernel release it requires, unlike the neighbouring
_portentry. Add the minimum kernel version or PR reference. (Found by Claude Opus 5.5 · confirmed by the judge)
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
1dbde93 to
175c99f
Compare
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 High · 2 Low
Needs changes — 1 high concern. The new statement call is unconditional, but the kernel dependency floor is unchanged, so every kernel query breaks on currently allowed wheels until the floor is bumped or the call is gated.
Feature or gap
Python callers can set
enable_query_result_lz4_compressionwhen connecting. The kernel backend previously ignored this setting.What this PR addresses
The connector passes the configured value to each kernel statement before synchronous or asynchronous execution.
Dependencies
Merge requires a published kernel wheel containing
Statement.set_lz4_compression, followed by the connector dependency floor and lockfile updates. The source integration job pins the supporting kernel revision.Kernel PR: databricks/databricks-sql-kernel#511.
Tests and validation
The 289 focused client tests and Black passed, including integer 0 normalization before sync/async dispatch. Optimized builds verified inline and CloudFetch values and codecs on both paths; five paired query timings per case met the ±10% median band (3.6–9.5% faster than Thrift).