Repository navigation
docs(matrix): document kernel-side NOT-IMPLEMENTED features for Thrift↔SEA parity - #83
Closed
msrathore-db wants to merge 1 commit into
Closed
msrathore-db wants to merge 1 commit into
msrathore-db wants to merge 1 commit into
Conversation
…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>
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>
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
Adds
docs/sea-feature-matrix.mdanddocs/jira-candidates-index.mddocumentingthe 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:
useSEA: true/use_kernel=Truedoes today_none yet_The 15 documented rows fall into 4 buckets:
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).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.
row_limiton publicStatementSpec(kernel already serializes it on the SEA wire — surfacingchange only); 2.17 add
wait_timeoutknob (distinct from transportoverall_timeout); 5.5/5.6 retry policy options (docs/designs/PECOBLR-2091-retry-logic-design.mdreferenced); 5.9 staging Volume API (sizeable — defer).
INTERVAL_*/TIMESTAMP_NTZ/GEOMETRY/GEOGRAPHYon 0-row decode);2.13 / 3.9 connection-time
QUERY_TAGSsilently dropped via session_confforwarding (affects both NodeJS SEA and Python
use_kernel=True).The
jira-candidates-index.mdtable lists the two kernel-side bugs filed2026-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.mdD5):DCO-signed, conventional-commit title,
Co-authored-by: Isaactrailer, nosecrets, branched off origin/main.
Downstream fixes / reviewer note
row_limit/ statement timeout), feat(napi): expose intervalsAsString + complexTypesAsJson on openSession #96 (intervalsAsString/ result config), feat(napi): expose named query parameters (param_named) on ExecuteOptions #98 (named params), and feat(napi): bundle SEA kernel parity surface #101 (TLS knobs).Test plan
Documentation-only PR. No code changes.
docs(matrix): ...)Co-authored-by: Isaactrailerdocs/designs/files (proxy-support-design.md,tls-config-design.md,PECOBLR-2091-retry-logic-design.md)This pull request and its description were written by Isaac.