Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[coverage] Conformance findings: CUSTOMHDR-002

Đang mở Phù hợp với người mới
#494 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
70/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
api

Hướng nghiên cứu

Tìm trong client Go chỗ cấu hình Accept-Encoding hoặc gzip transport cho các request ExecuteStatement / Statement Execution API (grep với Accept-Encoding, gzip, identity), và kiểm tra cách các thiết lập nén của HTTP client được đặt. Sửa lỗi là gửi identity trên ExecuteStatement theo yêu cầu của spec; hoàn thành khi TestSEARequestsDeclineResponseCompressionByDefault từ PR đo lường độ phủ (databricks/databricks-driver-test#1765) chạy chống lại driver này. PR tham chiếu databricks/databricks-jdbc#1723 cho thấy hành vi mong muốn bằng ngôn ngữ khác.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Summary

Surfaced by the multi-language coverage fan-out while conformance-testing these SPEC-IDs against databricks/databricks-sql-go. 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-go) is fixed, then flips green as a tripwire.

Findings

  • CUSTOMHDR-002 [sea]: SEA statements client sends Accept-Encoding: gzip on ExecuteStatement instead of the explicit identity default, gzipping already-compressed base64-of-LZ4-Arrow inline results (wasted CPU on both ends; the gzipped JSON envelope can be larger on the wire than the raw bytes)
    • failing test: TestSEARequestsDeclineResponseCompressionByDefault (see the coverage PR diff under tests/)

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

Ngôn ngữ chính
Go
Star
53
Fork
68
Merge trung bình
2 ngày 1 giờ
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của databricks/databricks-sql-go

Tất cả issue của databricks/databricks-sql-go

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.