DBItest skips its 64-bit Arrow round-trip specs unconditionally
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
- 72/100
Hướng nghiên cứu
Đọc sáu đặc tả 64-bit trong DBItest tại spec-arrow-write-table-arrow.R và spec-arrow-append-table-arrow.R ở các vị trí được trích dẫn. Trước tiên, hãy so sánh các lần bỏ qua vô điều kiện với những đặc tả round-trip liền kề và hành vi của test_arrow_roundtrip(). Công việc hoàn tất khi các đặc tả này chạy các round-trip ghi và nối thêm 64-bit mà không bỏ qua vô điều kiện; issue cũng đề xuất kiểm thử các round-trip Arrow int64 trong bộ kiểm thử riêng của RPostgres.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
All six 64-bit Arrow round-trip specs in DBItest (arrow_{write,append}_table_arrow_roundtrip_64_bit_{numeric,character,roundtrip}) start with an unconditional skip("Internal: Need to enhance test_arrow_roundtrip()"). RPostgres's DBItest run therefore does not exercise 64-bit values through dbWriteTableArrow() and dbAppendTableArrow(), which is why the int64 precision loss in #640 goes unnoticed by the spec suite.
Location: DBItest, spec-arrow-write-table-arrow.R (also L431, L447) and spec-arrow-append-table-arrow.R (also L202, L219).
Reprex against the CRAN release:
specs <- c(DBItest:::spec_arrow_write_table_arrow, DBItest:::spec_arrow_append_table_arrow)
sk <- specs[grepl("64_bit", names(specs))]
vapply(sk, function(f) deparse(body(f)[[2]]), "")
#> arrow_write_table_arrow_roundtrip_64_bit_numeric
#> "skip(\"Internal: Need to enhance test_arrow_roundtrip()\")"
#> arrow_write_table_arrow_roundtrip_64_bit_character
#> "skip(\"Internal: Need to enhance test_arrow_roundtrip()\")"
#> arrow_write_table_arrow_roundtrip_64_bit_roundtrip
#> "skip(\"Internal: Need to enhance test_arrow_roundtrip()\")"
#> arrow_append_table_arrow_roundtrip_64_bit_numeric
#> "skip(\"Internal: Need to enhance test_arrow_roundtrip()\")"
#> arrow_append_table_arrow_roundtrip_64_bit_character
#> "skip(\"Internal: Need to enhance test_arrow_roundtrip()\")"
#> arrow_append_table_arrow_roundtrip_64_bit_roundtrip
#> "skip(\"Internal: Need to enhance test_arrow_roundtrip()\")"
# Expected: no unconditional skip()
as.data.frame(sessioninfo::package_info("DBItest", dependencies = FALSE))[c("package", "ondiskversion", "source")]
#> package ondiskversion source
#> DBItest DBItest 1.9.0 RSPM
Created on 2026-11-29 with reprex v2.1.1
- report upstream (DBItest)
- meanwhile, test int64 Arrow round trips in RPostgres's own tests
Severity: low (proposed, Kirill may change). No user-facing failure, but a gap in test coverage.
Native Arrow support is coordinated in https://github.com/r-dbi/RPostgres/pull/631; it is not expected to fix this by construction, and native int64 support goes untested by DBItest until DBItest enables these specs.
- Ngôn ngữ chính
- R
- Star
- 345
- Fork
- 81
- Merge trung bình
- 8 giờ 21 phút
- Pull request đã merge (30 ngày)
- 18
Chuẩn bị môi trường
- Có Dockerfile hoặc 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 r-dbi/RPostgres
-
Độ khó 1/5 Dưới một 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
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Dates and timestamps outside years 0001 to 9999, and `infinity`, are read as garbage, with a probable out-of-bounds readCó thể đã có người làm @krlmlr đã nhận hôm nay. Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 1 ngày
-
performance
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của r-dbi/RPostgres
Issue tương tự
-
Installation fails from source: missing libintl.h on macOS, undeclared R_typeToChar() on R 4.6Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
vincentarelbundock/xtx#11 ·
-
Check that backends override both `dbFetchArrowChunk()` and `dbClearArrowChunk()`, or neitherĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
priority:low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
ichirio/rtfreporter#1166 ·
Maintainer thường phản hồi trong vòng 1 ngày