Skip to content

fix(kernel): honor the Arrow compression setting - #1081

Open
aakash-saravanan-db wants to merge 4 commits into
mainfrom
aakash-saravanan_data/feat/lz4-compression-toggle-20261127
Open

aakash-saravanan-db wants to merge 4 commits into
mainfrom
aakash-saravanan_data/feat/lz4-compression-toggle-20261127

Conversation

@aakash-saravanan-db

@aakash-saravanan-db aakash-saravanan-db commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Feature or gap

Python callers can set enable_query_result_lz4_compression when 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).

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔀 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.

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔀 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.

Comment thread CONNECTION_PARAMETERS.md Resolved
Comment thread tests/unit/test_kernel_client.py Resolved

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔀 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.

Comment thread CHANGELOG.md Resolved

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔀 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 _port entry. Add the minimum kernel version or PR reference. (Found by Claude Opus 5.5 · confirmed by the judge)

Comment thread tests/unit/test_kernel_client.py Resolved
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>

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔀 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.

Comment thread CHANGELOG.md Resolved
Comment thread tests/unit/test_kernel_client.py Resolved
@aakash-saravanan-db
aakash-saravanan-db added this pull request to the merge queue Dec 4, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 4, 2026

This branch was previously deployed

1 inactive deployment
azure-prod — 175c99fc Deployed Dec 4, 2026 by oss-reviewer-bot[bot] via followup #2910
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants