Skip to content

docs: add connection parameter reference - #184

Merged
eric-wang-1990 merged 13 commits into
mainfrom
docs/connection-parameters
Aug 18, 2026
Merged

eric-wang-1990 merged 13 commits into
mainfrom
docs/connection-parameters

Conversation

@eric-wang-1990

Copy link
Copy Markdown
Collaborator

What

Adds docs/connection-parameters.md — a single reference listing every connection / session parameter the kernel accepts: what it means, how it's named in each binding (Rust / Python / Node.js), and its default value.

Modeled on the ADBC C# driver's parameter wiki, which the kernel had no equivalent of — parameters were only discoverable by reading src/config.rs doc-comments, pyo3/src/session.rs #[pyo3(signature)], or the generated napi/index.d.ts.

Groups covered

Connection identity · Authentication (PAT / OAuth M2M / OAuth U2M) · Session defaults · HTTP client (timeouts, pool, retries, headers) · Proxy · TLS/SSL · Result handling (CloudFetch + type rendering) · Logging · Server-side session_conf (with the allowlisted keys) · Transport · a short per-statement-options appendix.

Each table has a Rust field / Python kwarg / Node.js option cross-reference (blank cell = binding doesn't expose it yet) plus Description and Default columns.

Sources of truth

  • Defaults ← src/config.rs (Default impls)
  • Python kwarg names ← pyo3/src/session.rs
  • Node.js option names ← napi/index.d.ts

Also

  • Refreshed the stale README intro — it still described the removed ADBC trait surface; now describes the v0 API and links the new doc.
  • Linked the reference from README.md (new Configuration section) and CLAUDE.md References.

Docs-only change — no code touched.

This pull request and its description were written by Isaac.

Add docs/connection-parameters.md — a grouped reference of every
connection / session parameter the kernel accepts, mirroring the ADBC
C# driver's parameter wiki. Each parameter lists its Rust field, Python
kwarg, and Node.js option name alongside a description and the
kernel-core default value.

Groups: connection identity, auth (PAT / OAuth M2M / U2M), session
defaults, HTTP client, proxy, TLS, result handling, logging, server-side
session_conf (with the allowlisted keys), and transport. Values sourced
from src/config.rs (defaults), pyo3/src/session.rs (Python kwargs), and
napi/index.d.ts (Node.js options).

Also refresh the stale README intro (it still described the removed ADBC
surface) and link the new reference from README and CLAUDE.md.

Co-authored-by: Isaac
Signed-off-by: eric-wang-1990 <e.wang@databricks.com>
Per review feedback:
- Move the parameter reference into README.md instead of a separate
  docs/ file (remove docs/connection-parameters.md).
- Scope it to the Rust SessionConfig surface only; drop the Python /
  Node.js binding columns.
- Revert the CLAUDE.md references link (no separate doc to point at).

Co-authored-by: Isaac
Signed-off-by: eric-wang-1990 <e.wang@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.

Add the cloudfetch_max_chunks_in_memory client-only session_conf key
(read at session-create, folded into ResultConfig, stripped before the
wire; default 16, clamped to 256) and clarify that LZ4 compression is
auto-detected from the result manifest rather than a user parameter.

Co-authored-by: Isaac
Signed-off-by: eric-wang-1990 <e.wang@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.

The Configuration section jumped straight into parameter tables with no
on-ramp. Add:
- a Quick start showing SessionBuilder → execute → drain → close, using
  the crate-root API (verified against tests/v0_execute_e2e.rs), and
- a compact config-group index table linking each subsection.

Content of the parameter tables is unchanged.

Co-authored-by: Isaac
Signed-off-by: eric-wang-1990 <e.wang@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 Medium · 1 Low

Docs-only PR; the reference tables (defaults, session_conf allowlist, U2M/M2M defaults, clamp ceiling) all check out accurately against src/config.rs and src/session.rs. Two issues in the README quick-start code block: it constructs a #[non_exhaustive] HttpConfig via struct-literal syntax (won't compile for external users), and it uses rustdoc #-hidden lines that render literally in GitHub markdown.

Comment thread README.md Resolved
Comment thread README.md Resolved
@eric-wang-1990 eric-wang-1990 added the engineer-bot Apply to an issue to trigger the engineer-bot; on a PR to enable engineer follow-up label Jul 23, 2026
Addresses:
  - #3628633971 at README.md:52
  - #3628633979 at README.md:47

Signed-off-by: peco-engineer-bot[bot] <peco-engineer-bot[bot]@users.noreply.github.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 Medium

Docs-only PR; the parameter tables and defaults all check out against src/config.rs (HTTP/OAuth/CloudFetch/session_conf allowlist + 256 clamp all match). One medium issue: the README quick-start's exec.close().await? won't compile because the ExecutedStatementHandle trait it lives on isn't imported.

Comment thread README.md Resolved
Scope this docs PR to the connection parameter reference: drop the Quick
start section and the intro rewrite that had crept into README, leaving a
single Configuration section that links to CONNECTION_PARAMETERS.md.

Co-authored-by: Isaac
Signed-off-by: eric-wang-1990 <e.wang@databricks.com>
Correct the intro in place: the kernel exposes a Databricks-native v0 async
API plus PyO3 / napi / C ABI surfaces, not just the ADBC trait surface.

Co-authored-by: Isaac
Signed-off-by: eric-wang-1990 <e.wang@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 Medium

Docs-only PR adding a connection-parameter reference; the documented defaults, field names, and cross-references I spot-checked against src/config.rs are accurate. One medium issue: the "Client-only session_conf keys" table lists only 1 of the 6 keys ClientConfKey actually accepts, which undercuts the doc's stated goal of covering the C ABI knob surface. Minor note: the PR description says the doc was also linked from CLAUDE.md References, but the diff contains no CLAUDE.md change — either add that link or drop the claim.

Comment thread CONNECTION_PARAMETERS.md Resolved
Addresses:
  - #3800367957 at CONNECTION_PARAMETERS.md:192

Signed-off-by: peco-engineer-bot[bot] <peco-engineer-bot[bot]@users.noreply.github.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 High

Docs-only PR; defaults, field names, and allowlist entries otherwise check out against src/config.rs. One high-severity factual error: the CAN_CLOUD_DOWNLOAD row (CONNECTION_PARAMETERS.md:160) claims it's an allowlisted, user-settable server conf, but the code deliberately excludes it from the allowlist and drops any user value (guarded by a regression test).

Minor (nit, not blocking): the PR description says the file was added as docs/connection-parameters.md and linked from CLAUDE.md, but the diff adds CONNECTION_PARAMETERS.md at repo root and contains no CLAUDE.md change — worth reconciling the description/scope.

Comment thread CONNECTION_PARAMETERS.md Resolved
Addresses:
  - #3800385726 at CONNECTION_PARAMETERS.md:160

Signed-off-by: peco-engineer-bot[bot] <peco-engineer-bot[bot]@users.noreply.github.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.

@eric-wang-1990
eric-wang-1990 added this pull request to the merge queue Aug 18, 2026
Merged via the queue into main with commit fb88ffa Aug 18, 2026
18 of 19 checks passed

This branch was previously deployed

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

Labels

engineer-bot Apply to an issue to trigger the engineer-bot; on a PR to enable engineer follow-up

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant