Repository navigation
perf: skip gzip for SEA responses by default - #385
Merged
rahuls-db merged 2 commits intoOct 6, 2026
Merged
Conversation
Signed-off-by: Rahul Singhal <rahul.singhal@databricks.com>
There was a problem hiding this comment.
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.
Signed-off-by: Rahul Singhal <rahul.singhal@databricks.com>
vuanhphung
approved these changes
Oct 6, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Accept-Encoding: identityon authenticated SEA requests by defaultThis mirrors adbc-drivers/databricks#678 and follows the JDBC implementation in databricks/databricks-jdbc#1723.
Testing
cargo check --all-targetscargo test response_compressioncargo test authenticated_requests_use_identity_encoding_by_defaultcargo +stable fmt --all -- --checkcargo clippy --all-targets -- -D warningsPYO3_NO_PYTHON=1 PYO3_BUILD_EXTENSION_MODULE=1 cargo check --all-targetsPYO3_NO_PYTHON=1 PYO3_BUILD_EXTENSION_MODULE=1 cargo clippy --all-targets -- -D warningscargo check --all-targetscargo clippy --all-targets -- -D warningsPyO3 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.4declaration generator is incompatible with the repository's current napi-rs v3 macros, sonapi/index.d.tswas updated manually to match the generated property naming.