DBItest skips its 64-bit Arrow round-trip specs unconditionally

未关闭 适合新手
#653 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
postgresql, r
领域
databases, testing

调研方向

在引用的位置阅读 DBItest 中的六个 64 位规范:spec-arrow-write-table-arrow.R 和 spec-arrow-append-table-arrow.R。首先,将它们的无条件跳过与相邻的往返规范以及 test_arrow_roundtrip() 的行为进行比较。完成标准是这些规范在没有无条件跳过的情况下执行 64 位写入和追加往返;该 issue 还提议在 RPostgres 自己的测试中覆盖 int64 Arrow 往返。

由索引模型根据 Issue 内容生成。

描述

bug

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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

r-dbi/RPostgres 的其他 Issue

查看 r-dbi/RPostgres 的全部 Issue

相似的 Issue

更多 R Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。