Skip to content

docs(matrix): document kernel-side NOT-IMPLEMENTED features for Thrift↔SEA parity - #83

Closed
msrathore-db wants to merge 1 commit into
mainfrom
msrathore/krn-parity-gaps-docs-2026-05-28
Closed

msrathore-db wants to merge 1 commit into
mainfrom
msrathore/krn-parity-gaps-docs-2026-05-28

Conversation

@msrathore-db

@msrathore-db msrathore-db commented May 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds docs/sea-feature-matrix.md and docs/jira-candidates-index.md documenting
the 15 kernel-side gaps and 2 kernel-side bug candidates that block NodeJS
Thrift↔SEA parity for the autonomous parity drive. Source-of-truth audit:
databricks-sql-nodejs/sea-workflow/audits/2026-05-28-cross-driver-audit.md.

Each feature-matrix row pins:

  • Feature name + scope — what the user-facing surface does
  • NodeJS Thrift behavior — the parity target
  • Current SEA behavior — what useSEA: true / use_kernel=True does today
  • Kernel surface needed — smallest kernel-public-API change required
  • Recommended path forward — kernel → napi → NodeJS adapter → driver-test sequencing
  • JIRA-candidate — filename if filed, else _none yet_

The 15 documented rows fall into 4 buckets:

  • Auth — 1.6 Azure tenant SP; 1.7 custom auth (Thrift-only by design);
    1.8–1.11 token-provider / external-token / static-token / federation client
    ID (bundled as one kernel PR — same external-token-provider hook on Session).
  • Transport — 1.12 HTTP/SOCKS proxy (kernel ProxyConfig {} empty struct);
    1.13 TLS custom CA + mTLS (kernel PR feat(statement): expose 5 status accessors on ExecutedStatement (stack 8/8) #23 in-flight, referenced); 1.14 custom
    HTTP headers.
  • Statement / retry / staging — 2.15 surface row_limit on public
    StatementSpec (kernel already serializes it on the SEA wire — surfacing
    change only); 2.17 add wait_timeout knob (distinct from transport
    overall_timeout); 5.5/5.6 retry policy options (docs/designs/PECOBLR-2091-retry-logic-design.md
    referenced); 5.9 staging Volume API (sizeable — defer).
  • Kernel bugs — 3.10 empty-result manifest fidelity (loses
    INTERVAL_* / TIMESTAMP_NTZ / GEOMETRY / GEOGRAPHY on 0-row decode);
    2.13 / 3.9 connection-time QUERY_TAGS silently dropped via session_conf
    forwarding (affects both NodeJS SEA and Python use_kernel=True).

The jira-candidates-index.md table lists the two kernel-side bugs filed
2026-05-29 by the C1 (querytags) and C4 (empty-result fidelity) driver-test
authors, with pointers to the canonical candidate markdown under the NodeJS
workflow tree and to the driver-test reproducers.

PR follows the autonomous parity drive's quality gates
(databricks-sql-nodejs/sea-workflow/decisions/2026-05-28-autonomous-parity-decisions.md D5):
DCO-signed, conventional-commit title, Co-authored-by: Isaac trailer, no
secrets, branched off origin/main.

Downstream fixes / reviewer note

Test plan

Documentation-only PR. No code changes.

  • DCO sign-off on commit
  • Conventional commit title (docs(matrix): ...)
  • Co-authored-by: Isaac trailer
  • Apache 2.0 / 2026 license header on both new files
  • All cross-doc links resolve (verified manually):
    • feature-matrix → jira-candidates-index → candidate files in NodeJS workflow tree
    • feature-matrix → existing kernel docs/designs/ files (proxy-support-design.md, tls-config-design.md, PECOBLR-2091-retry-logic-design.md)
  • Independent reviewer (devils-advocate) cold-review per D10

This pull request and its description were written by Isaac.

…t↔SEA parity

Add docs/sea-feature-matrix.md and docs/jira-candidates-index.md.

The feature matrix documents 15 kernel-side gaps that block NodeJS Thrift↔SEA
parity for the autonomous parity drive, sourced from the cross-driver audit at
databricks-sql-nodejs/sea-workflow/audits/2026-05-28-cross-driver-audit.md.
Each row pins the contract (NodeJS Thrift behavior, current SEA behavior),
identifies the smallest kernel-public-API change required, and proposes a
kernel→napi→driver→driver-test sequencing.

Coverage:
- Auth (1.6 Azure tenant SP; 1.7 custom auth — Thrift-only by design;
  1.8–1.11 token-provider / external / static / federation client id —
  bundled as one kernel PR).
- Transport (1.12 HTTP/SOCKS proxy; 1.13 TLS custom CA + mTLS, references
  PR #23; 1.14 custom HTTP headers).
- Statement (2.15 surface row_limit on public StatementSpec; 2.17 add
  wait_timeout knob).
- Retry (5.5/5.6 retry policy options, references docs/designs/PECOBLR-2091).
- Staging (5.9 Volume API — sizeable, defer).
- Result-fetching fidelity (3.10 empty-result manifest fidelity — kernel bug).
- Session (2.13/3.9 connection-time QUERY_TAGS drop — kernel bug).

The jira-candidates index adds the two new kernel-side bug candidates filed
by the C1 (querytags) and C4 (empty-result fidelity) driver-test authors
2026-05-29, with pointers to the canonical markdown under the NodeJS
workflow tree and to the driver-test reproducers that pin the current
buggy behavior.

Co-authored-by: Isaac
Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>
@msrathore-db

Copy link
Copy Markdown
Collaborator Author

Closing per owner direction: this docs-only parity matrix PR is no longer needed for the current SEA review stack.

eric-wang-1990 added a commit that referenced this pull request Aug 13, 2026
…ver2 #83)

`reshape_tables` special-cased `Some(&[])` (explicit empty table_types
slice) as match-ALL, equivalent to `None` — added in #201 (fix for #187)
and relied on by #223's C-ABI cleanup. That premise was reversed by
adbc-drivers/hiveserver2 #83: an empty type filter matches NOTHING (zero
rows), matching databricks-jdbc's long-standing `listTables` short-circuit,
and driver-test's METADATA-035 conformance test was flipped to expect
match-none on 2026-08-06. The kernel driver landed the opposite behavior on
2026-08-10, so the live nightly (get_tables_empty_table_types_filter_matches_none,
both normal and reyden legs) went red: the test demands 0 rows, the driver
returned all rows.

Realign the driver with the canonical (#83) contract:

- thrift_shape.rs: drop the `Some([]) => reshaped` arm so an empty slice
  flows through `filter_tables_by_type`, whose `types.iter().any(..)` is
  false for every row → a correctly-typed empty batch. Only `None` now
  means match-all. Rewrote the inline + doc comments (they cited the
  reversed #72 reading).
- thrift_shape.rs unit test: tables_empty_types_matches_all →
  tables_empty_types_matches_none (asserts 0 rows).
- c_abi/metadata.rs: re-add the empty-CSV → `None` collapse that #223
  removed. ODBC passes "" / whitespace / comma-only junk for "no type
  filter" (match-all); now that `Some(&[])` means match-none again on the
  Rust surface, the C-ABI boundary must collapse an empty parse back to
  `None` to preserve ODBC's empty→"all types" convention. Keeps #223's
  `split_table_types_csv` helper; restores the pre-#223 guard via
  `.filter(|t| !t.is_empty())`. The napi/pyo3 typed surfaces intentionally
  pass `Some(&[])` through (match-none), consistent with the Rust API.

Validated: 766 lib unit tests pass; fmt + clippy clean; the live E2E
get_tables_empty_table_types_filter_matches_none passes against a real
warehouse (was red in the nightly). Reopens/supersedes #187 (its match-all
premise is overturned by #83).

Co-authored-by: Isaac
eric-wang-1990 added a commit that referenced this pull request Aug 14, 2026
…ver2 #83)

`reshape_tables` special-cased `Some(&[])` (explicit empty table_types
slice) as match-ALL, equivalent to `None` — added in #201 (fix for #187)
and relied on by #223's C-ABI cleanup. That premise was reversed by
adbc-drivers/hiveserver2 #83: an empty type filter matches NOTHING (zero
rows), matching databricks-jdbc's long-standing `listTables` short-circuit,
and driver-test's METADATA-035 conformance test was flipped to expect
match-none on 2026-08-06. The kernel driver landed the opposite behavior on
2026-08-10, so the live nightly (get_tables_empty_table_types_filter_matches_none,
both normal and reyden legs) went red: the test demands 0 rows, the driver
returned all rows.

Realign the driver with the canonical (#83) contract:

- thrift_shape.rs: drop the `Some([]) => reshaped` arm so an empty slice
  flows through `filter_tables_by_type`, whose `types.iter().any(..)` is
  false for every row → a correctly-typed empty batch. Only `None` now
  means match-all. Rewrote the inline + doc comments (they cited the
  reversed #72 reading).
- thrift_shape.rs unit test: tables_empty_types_matches_all →
  tables_empty_types_matches_none (asserts 0 rows).
- c_abi/metadata.rs: re-add the empty-CSV → `None` collapse that #223
  removed. ODBC passes "" / whitespace / comma-only junk for "no type
  filter" (match-all); now that `Some(&[])` means match-none again on the
  Rust surface, the C-ABI boundary must collapse an empty parse back to
  `None` to preserve ODBC's empty→"all types" convention. Keeps #223's
  `split_table_types_csv` helper; restores the pre-#223 guard via
  `.filter(|t| !t.is_empty())`. The napi/pyo3 typed surfaces intentionally
  pass `Some(&[])` through (match-none), consistent with the Rust API.

Validated: 766 lib unit tests pass; fmt + clippy clean; the live E2E
get_tables_empty_table_types_filter_matches_none passes against a real
warehouse (was red in the nightly). Reopens/supersedes #187 (its match-all
premise is overturned by #83).

Co-authored-by: Isaac

Signed-off-by: eric-wang-1990 <e.wang@databricks.com>
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.

1 participant