[coverage] Conformance findings: DATATYPE-041
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 50/100
Hướng nghiên cứu
Bắt đầu với đường dẫn chuyển đổi văn bản của DECIMAL trong databricks/databricks-sql-go và test TestDecimalTextRenderingWithoutScientificNotation được mô tả trong coverage PR bên dưới tests/. So sánh hành vi với contract DATATYPE-041 dùng chung và reference PR 134. Hoàn thành khi test xfail chuyển sang xanh và tất cả các giá trị được liệt kê đều được hiển thị ở dạng ký hiệu thông thường với scale đã khai báo.
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
- DATATYPE-041 [thrift]: DECIMAL text rendering falls back to scientific notation for sub-1 high-scale values: DECIMAL(20,7) 0.0000001 is returned as the string "1E-7" instead of plain notation at the declared scale (PECOBLR-2096)
- failing test:
TestDecimalTextRenderingWithoutScientificNotation(see the coverage PR diff undertests/)
- failing test:
- DATATYPE-041: DECIMAL text rendering falls back to scientific notation for sub-1 high-scale values: DECIMAL(20,7) 0.0000001 is returned as the string "1E-7" instead of plain notation at the declared scale, so a consumer reading the column as text parses a wrong or unparseable value (PECOBLR-2096)
Reproduce & Expected
DATATYPE-041 — Verify that when a driver renders a DECIMAL column as text, the rendering is PLAIN decimal notation carrying the column's declared scale -- never scientific notation, never a re-scaled or truncated m…
Expected (per the shared spec):
- result has exactly 1 row(s)
- col
zero_scaled, row 0 == 0 - col
sub_one, row 0 == 0.5 - col
neg_sub_one, row 0 == -0.05 - col
sub_one_high_scale, row 0 == 1e-07 - col
trailing_zeros, row 0 == 100.0 - col
wide_magnitude, row 0 == 1.2345678901234568e+26 - full assertion contract:
result:
- row_count: 1
- column:
name: zero_scaled
equals: 0
- column:
name: sub_one
equals: 0.5
- column:
name: neg_sub_one
equals: -0.05
- column:
name: sub_one_high_scale
equals: 1.0e-07
- column:
name: trailing_zeros
equals: 100.0
- column:
name: wide_magnitude
equals: 1.2345678901234568e+26
- decimal_text_plain_notation:
columns:
- zero_scaled
- sub_one
- neg_sub_one
- sub_one_high_scale
- trailing_zeros
- wide_magnitude
Context
- The behavior was first fixed in a DIFFERENT driver — reference PR: https://github.com/databricks/databricks-odbc/pull/134 — which seeded the shared language-neutral spec. This issue tracks the same conformance gap in databricks/databricks-sql-go; 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/1138
- 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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của databricks/databricks-sql-go
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
databricks/databricks-sql-go#494 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
databricks/databricks-sql-go#499 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 64/100
databricks/databricks-sql-go#490 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
databricks/databricks-sql-go#481 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
databricks/databricks-sql-go#480 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của databricks/databricks-sql-go
Issue tương tự
-
area/import kind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
kind/documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
kubernetes-sigs/dra-driver-nvidia-gpu#1569 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
openclaw/openclaw-enterprise#2571 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
All resource links brokenĐang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày