DBItest skips its 64-bit Arrow round-trip specs unconditionally
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 72/100
调研方向
在引用的位置阅读 DBItest 中的六个 64 位规范:spec-arrow-write-table-arrow.R 和 spec-arrow-append-table-arrow.R。首先,将它们的无条件跳过与相邻的往返规范以及 test_arrow_roundtrip() 的行为进行比较。完成标准是这些规范在没有无条件跳过的情况下执行 64 位写入和追加往返;该 issue 还提议在 RPostgres 自己的测试中覆盖 int64 Arrow 往返。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- R
- 星标
- 345
- 派生
- 81
- 平均合并
- 8 小时 21 分钟
- 30 天内合并 PR
- 18
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
r-dbi/RPostgres 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
Dates and timestamps outside years 0001 to 9999, and `infinity`, are read as garbage, with a probable out-of-bounds read可能已有人在做 @krlmlr 今天认领。 未关闭bug
难度 4/5 3-5 天 新手友好度 35/100
维护者通常 1 天内回复
-
bug
难度 4/5 3-5 天 新手友好度 45/100
维护者通常 1 天内回复
-
performance
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
vincentarelbundock/xtx#11 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 78/100
-
priority:low
难度 2/5 1-3 小时 新手友好度 87/100
ichirio/rtfreporter#1166 ·
维护者通常 1 天内回复