Skip to content

docs: Update the specification from DBItest 1.9.0 - #793

Merged
krlmlr merged 1 commit into
mainfrom
claude/spec-dbitest-1.9.0
Nov 29, 2026
Merged

krlmlr merged 1 commit into
mainfrom
claude/spec-dbitest-1.9.0

Conversation

@krlmlr

@krlmlr krlmlr commented Nov 29, 2026

Copy link
Copy Markdown
Member

Mirrors the DBI specification from the released DBItest 1.9.0 (now on CRAN). Review PR: #781

Procedure

The same procedure as earlier spec updates (e.g. 4dd4020, 8013faf):

  • Installed DBItest 1.9.0 from CRAN and roxygen2 8.1.1.9000 from r-universe, which matches Config/roxygen2/version. Pandoc is 3.10.2.
  • Ran devtools::document(), then devtools::load_all(). Loading runs tests/testthat/helper-dev.R, which renders the spec topics from man/*.Rd to vignettes/spec.html and converts that file to vignettes/spec.md with pandoc.
  • The helper also rewrites tests/testthat/test-DBItest.R when an RSQLite checkout sits next to DBI. I reverted that change because it is unrelated.
  • Baseline: I ran the same procedure on unchanged main with DBItest 1.8.3. spec.md came out identical to main, so the last mirror was DBItest 1.8.3 and the toolchain adds no changes of its own. The man/*.Rd files on main had already been brought up to the DBItest development version by the auto-update workflow. With 1.9.0 they come out unchanged, except for the one addition below.

Spec changes (DBItest 1.8.3 → 1.9.0)

  • dbFetch(): the failure-modes text for results from dbSendStatement() now says the result is an empty data frame with a warning, and that such results are for side effects and should not be fetched; use dbSendQuery() instead (DBItest fledge: Bump version to 1.3.0.9004 #588).
  • dbSendQueryArrow(): the schema of the result does not depend on the values bound with dbBind() (fledge: Bump version to 1.3.0.9000 #571).
  • dbFetchArrow(): the schema is available through nanoarrow::infer_nanoarrow_schema() before any batch is consumed, and reading it does not consume the stream (fledge: Bump version to 1.3.0.9000 #571).
  • dbFetchArrowChunk(): each chunk carries the result's schema, and that schema stays the same across all chunks, including the final zero-length chunk (fledge: Bump version to 1.3.0.9000 #571).
  • dbGetQueryArrow(): DBItest moved the sentence about nanoarrow::as_nanoarrow_array_stream() out of "Failure modes" into a new "Specification" section and added the schema requirements, including for zero-row results (fledge: Bump version to 1.3.0.9000 #571). DBI did not inherit that section yet, so the sentence had dropped out of the docs. R/dbGetQueryArrow.R now adds @inheritSection DBItest::spec_arrow_get_query_arrow Specification, in the same order as dbGetQuery(). This is the only Rd change.
  • dbReadTableArrow(): a BIGINT column comes back as Arrow int64 (fledge: Bump version to 1.3.0.9000 #571).

Most of the large diff in vignettes/spec.html is line rewrapping. Earlier Rd reflows never reached that file, and it is generated output.

DESCRIPTION

Suggests now has DBItest (>= 1.9.0) instead of (>= 1.8.2), because the mirrored text and the inherited sections now come from DBItest 1.9.0. I left Config/Needs/check: r-dbi/DBItest unchanged.

Checks

  • devtools::test(): FAIL 0, WARN 0, SKIP 58, PASS 9868.
  • devtools::check(args = "--no-manual"): 0 errors. The 1 warning (qpdf not installed) and the 1 note (the hidden .git file of a git worktree) both come from the local environment. The Rd and vignette checks pass.

Session: https://claude.ai/code/session_01Hr1rd74amfjQXm8ArmPSth


Generated by Claude Code

Regenerate `vignettes/spec.md` and `vignettes/spec.html` with DBItest 1.9.0,
and inherit the new "Specification" section of `dbGetQueryArrow()`,
which now holds the sentences that DBItest moved out of "Failure modes".
Require DBItest >= 1.9.0 in Suggests, since the mirrored text comes from it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hr1rd74amfjQXm8ArmPSth

krlmlr commented Nov 29, 2026

Copy link
Copy Markdown
Member Author

Accepted limitations

The clean review found nothing above Low.

  • Running roxygenise() on a copy of the PR head with DBItest 1.9.0 from CRAN reproduces every man/ change exactly. Nothing comes from DBItest's development version.

  • The changes in spec.md trace to DBItest fledge: Bump version to 1.3.0.9004 #588 and fledge: Bump version to 1.3.0.9000 #571.

  • No other inherited section is missing: every @inheritSection DBItest::spec_* was compared with the sections in DBItest 1.9.0.

  • vignettes/spec.html shows a large diff. It is an intermediate file, written by tests/testthat/helper-dev.R and read by nobody but the pandoc step that makes spec.md. Most of the diff is line breaks reflowed from the Rd sources; a word-level diff shows only the spec text changes, 38 lines. Relevance: low. Confidence: high.

  • tools::checkRd reports Low notes in Rd files this PR does not touch: titles ending in a period, lost braces in dbCallProc.Rd, and non-ASCII characters in DBI-package.Rd. man/dbGetQueryArrow.Rd is clean. Relevance: low. Confidence: high.

  • tests/testthat/helper-dev.R also rewrites tests/testthat/test-DBItest.R when an RSQLite checkout sits next to DBI. That was reverted here, but it can surprise whoever regenerates the spec next. Relevance: low. Confidence: medium.


Generated by Claude Code

@krlmlr
krlmlr marked this pull request as ready for review November 29, 2026 06:12
@krlmlr krlmlr mentioned this pull request Nov 28, 2026
3 of 7 tasks
@krlmlr
krlmlr merged commit 797ec42 into main Nov 29, 2026
9 checks passed
@krlmlr
krlmlr deleted the claude/spec-dbitest-1.9.0 branch November 29, 2026 06:59
@krlmlr krlmlr mentioned this pull request Nov 29, 2026
15 of 22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants