Skip to content

perf: skip gzip for SEA responses by default - #385

Merged
rahuls-db merged 2 commits into
mainfrom
rahul-singhal_data/rahul-singhal/sea-disable-response-gzip
Oct 6, 2026
Merged

rahuls-db merged 2 commits into
mainfrom
rahul-singhal_data/rahul-singhal/sea-disable-response-gzip

Conversation

@rahuls-db

Copy link
Copy Markdown
Collaborator

Summary

  • send Accept-Encoding: identity on authenticated SEA requests by default
  • preserve unauthenticated OAuth and CloudFetch traffic
  • add opt-back-in settings for Rust, Python, Node.js, and the C ABI
  • document the behavior in the next-release changelogs

This mirrors adbc-drivers/databricks#678 and follows the JDBC implementation in databricks/databricks-jdbc#1723.

Testing

  • cargo check --all-targets
  • cargo test response_compression
  • cargo test authenticated_requests_use_identity_encoding_by_default
  • cargo +stable fmt --all -- --check
  • cargo clippy --all-targets -- -D warnings
  • PyO3: PYO3_NO_PYTHON=1 PYO3_BUILD_EXTENSION_MODULE=1 cargo check --all-targets
  • PyO3: PYO3_NO_PYTHON=1 PYO3_BUILD_EXTENSION_MODULE=1 cargo clippy --all-targets -- -D warnings
  • napi: cargo check --all-targets
  • napi: cargo clippy --all-targets -- -D warnings

PyO3 unit tests cannot link on this host because its Python is older than the required abi3-py39 target. napi Rust unit tests cannot link without Node-API symbols; compile and Clippy checks pass.

The README-pinned @napi-rs/cli@2.18.4 declaration generator is incompatible with the repository's current napi-rs v3 macros, so napi/index.d.ts was updated manually to match the generated property naming.

Signed-off-by: Rahul Singhal <rahul.singhal@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.

Verdict: 1 Low

Looks good — a clean, well-tested perf change with 1 low edge-case note. The identity-encoding header is correctly scoped to authenticated SEA requests, leaves CloudFetch/OAuth (execute_without_auth) untouched, and plumbs a false-by-default opt-back-in flag consistently through the kernel, C ABI, pyo3, and napi, each with matching tests.

Comment thread src/client/http.rs Resolved
Signed-off-by: Rahul Singhal <rahul.singhal@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.

✅ No issues identified by the review bot.

@rahuls-db
rahuls-db requested a review from vuanhphung October 6, 2026 19:02
@rahuls-db
rahuls-db added this pull request to the merge queue Oct 6, 2026
Merged via the queue into main with commit 1bff398 Oct 6, 2026
32 of 33 checks passed

This branch was previously deployed

1 inactive deployment
azure-prod — 15df3392 Deployed Oct 6, 2026 by oss-reviewer-bot[bot] via followup #1915
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