[coverage] Conformance findings: CUSTOMHDR-002
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 74/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- typescript
- 領域
- api
研究方向
在 src/ 中定位 SEA ExecuteStatement HTTP 請求標頭的組裝位置(搜尋 Accept-Encoding 或預設 fetch/axios 標頭的設定位置),並查看 Accept-Encoding: gzip 是如何被附加上的。以參考 PR databricks/databricks-jdbc#1723 作為預期行為,以 databricks/databricks-driver-test#1765 中的 xfail 測試 SEA requests decline response compression by default 作為驗收標準。完成的標誌是 ExecuteStatement 請求傳送 Accept-Encoding: identity,而其他操作不受影響。
由索引模型根據 Issue 內容生成。
描述
Summary
Surfaced by the multi-language coverage fan-out while conformance-testing these SPEC-IDs against databricks/databricks-sql-nodejs. Each finding is committed as an expected-failure (xfail) test in the coverage PR — the test asserts the CORRECT (post-fix) behavior and stays red until THIS driver (databricks/databricks-sql-nodejs) is fixed, then flips green as a tripwire.
Findings
- CUSTOMHDR-002 [sea]: SEA statements client sends
Accept-Encoding: gzipinstead of the required explicitidentityon ExecuteStatement, negotiating HTTP response compression over base64-of-LZ4-Arrow inline results- failing test:
SEA requests decline response compression by default(see the coverage PR diff undertests/)
- failing test:
- CUSTOMHDR-002: SEA statements client sends
Accept-Encoding: gzipinstead of the required explicitidentityon ExecuteStatement, so it negotiates HTTP response compression on top of base64-encoded LZ4-compressed Arrow inline results (gzipping already-compressed bytes: wasted server and client CPU, and a gzipped JSON envelope that can be larger on the wire than the raw binary)
Reproduce & Expected
CUSTOMHDR-002 — SEA (Statement Execution API) inline results are LZ4-compressed Arrow, base64-encoded and wrapped in a JSON envelope.
Reproduce:
SELECT 1 AS value
Expected (per the shared spec):
- result has exactly 1 row(s)
- col 0, row 0 == 1 (type Int32)
- full assertion contract:
result:
- row_count: 1
- column:
index: 0
row: 0
type: Int32
equals: 1
protocol:
sea:
- request_header:
operation: ExecuteStatement
name: Accept-Encoding
equals: identity
Context
- The behavior was first fixed in a DIFFERENT driver — reference PR: https://github.com/databricks/databricks-jdbc/pull/1723 — which seeded the shared language-neutral spec. This issue tracks the same conformance gap in databricks/databricks-sql-nodejs; the reference PR is for cross-referencing the intended behavior, NOT a change to this repo.
- Coverage PR carrying the reproducing xfail test(s): https://github.com/databricks/databricks-driver-test/pull/1765
- 主要語言
- TypeScript
- 星號
- 37
- 分支
- 52
- 平均合併
- 1 天 47 分鐘
- 30 天內合併 PR
- 10
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
databricks/databricks-sql-nodejs 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
databricks/databricks-sql-nodejs#526 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
databricks/databricks-sql-nodejs#503 ·
維護者通常 1 天內回覆
-
engineer-bot
難度 2/5 1-3 小時 新手友好度 64/100
databricks/databricks-sql-nodejs#274 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 55/100
databricks/databricks-sql-nodejs#540 ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 55/100
databricks/databricks-sql-nodejs#539 ·
維護者通常 1 天內回覆
查看 databricks/databricks-sql-nodejs 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
kind/chore priority/must
難度 2/5 1-3 小時 新手友好度 82/100
sidereal-io/sidereal#380 ·
維護者通常 1 天內回覆
-
Mend: dependency security vulnerability
難度 2/5 1-3 小時 新手友好度 62/100
opfab/operatorfabric-core#10653 ·
維護者通常 1 天內回覆
-
backend bug size:sm
難度 2/5 1-3 小時 新手友好度 82/100
chrisbenincasa/tunarr#2237 ·
維護者通常 1 天內回覆
-
documentation
難度 2/5 半天 新手友好度 69/100
Lam30ne/regulate-app#39 ·