Repository navigation
Conversation
An empty commit that anchors the coordination pull request, which records the state, the questions, and the decisions of the review. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
Resolved: close the stale pull requests #437 and #465?#437 (2022) is a work in progress generated by
Generated by Claude Code |
Moved: close #704?Moved to #880: #880 (comment). Please answer there. It edits the generated
Generated by Claude Code |
Review of #759, held hereNothing has been posted on #759. The review below is for the maintainer to decide on; see the question that follows. Review of #759 at 80c45ae, by a Claude Code reviewer with clean context that read the diff and checked it against the code on Medium1. The new Low2. The list is still introduced with "There are two exceptions:" but now has three items, and the third is not a special 3. The PR rewraps two existing list items it does not otherwise change, and wraps the new prose mid-sentence, against the one-sentence-per-line style of both files. 4. The new text does not say what a user sees when the package was built without libcurl. Without libcurl, 5. The README examples call The
|
Moved: how to proceed with #759?Moved to #880: #880 (comment). Please answer there. The review of #759 is in the comment above. Its one Medium finding is that the help page presents the explicit
Generated by Claude Code |
Resolved: close #806 as a no-op?The clean review of #806 found that
Done: closed with a comment. Generated by Claude Code |
Resolved: where should the draft #791 go?The clean review of #791 has one High finding (the new step is not
Done: closed with a comment; the branch Generated by Claude Code |
Resolved: fix the HTTP VFS integration tests on
|
Moved: move
|
Resolved: fix the SQL text used as a warning format on
|
|
Integration review of the Arrow stack at 071560e (#795 → #796 → #800 → #801 → #802 → #807), by a Claude Code reviewer with clean context that read the six PR descriptions, the earlier review comments, FindingsMedium1. With Low2. A number of days beyond 32 bits in a 3. In a UTF-16 database, text in a binary column comes back as its UTF-16 bytes through Arrow and as UTF-8 bytes on the default path (#795). Confirmed: after 4. 5. The row counter is a 32-bit 6. 7. The description of #807 describes code that is gone (#807). By reading: it names 8. 9. 10. The default pathWith Checked and found sound
Generated by Claude Code |
|
Integration review of the Arrow stack at d451398 (#795 → #796 → #800 → #801 → #802 → #807 → #831), by a Claude Code reviewer with clean context that read the integration review at 071560e, the descriptions of the seven pull requests and their latest review and "Accepted limitations" comments, High1. The stream's date and time parsers call R's Medium2. Arrow's scanner and Acero read the stream ahead in the background while R goes on running (#795). Confirmed. With 300,000 rows, 3. A stream released on a worker thread while its R result object is alive keeps the statement and its read transaction open after LowNone, beyond the documentation parts of findings 2 and 3. The default pathWith Checked and found sound
Generated by Claude Code |
Moved: should R wait for a stream read on another thread (#795)?Moved to #880: #880 (comment). Please answer there. The second integration review found that arrow's scanner and Acero read an RSQLite stream ahead in the background on worker threads while R goes on running. Right after the first batch, R's own calls on the same result run into the stream's busy mark. The clear part of the fix is under way on #795: the mark becomes an atomic owned by one thread, so two threads can never be in the result at once; What remains is what an R fetch, bind or
Generated by Claude Code |
Resolved: how should the UTF-8 checks of text columns be switched on?Asked on #799: the checks are a breaking change, so they go behind an option that defaults to the current behavior, reimplemented from RSQLite already keeps settings like this on the connection:
The fixes pull request starts with the recommended form; another choice changes only how the setting reaches the fetch. Generated by Claude Code |
Superseded: when should the Arrow stack use the new UTF-8 infrastructure?Superseded by the plan to rework the Arrow stack: the new stack sits on #830, and its text-column pull request uses #845's validator, merging Asked on #799: the UTF-8 infrastructure comes first, in its own pull request from GitHub stacks are linear, so the Arrow stack and the UTF-8 fixes cannot both sit directly on top of the infrastructure pull request in one stack.
Generated by Claude Code |
Plan: rework the Arrow stack (#795 to #831) into scoped pull requestsAsked in the session: rework the long stack from scratch into a new stack of scoped, human-reviewable pull requests, starting with the less controversial changes. Each pull request below gets a fresh branch with a clean history, its own description, tests whose every Base. The new stack goes on top of #830 (on #850). The fetch loop, A. No change of behavior
B. Internal engine behind unexported entry points; the default path stays unchanged unless noted
C. Replacing DBI's default Arrow methods
D. Opt-in data-frame path through Arrow
Separate pull requests from Opened so far: group A as #855 (1), #856 (2) and #857 (3), stacked on #830; pull request 4 is being written. Dropped: Order of work: A and the three separate pull requests start now. Each later pull request starts once the one below it is pushed, and the questions that follow decide C and D before those are due. Generated by Claude Code |
Resolved: should RSQLite's own Arrow methods replace DBI's default ones, with faithful types?For the Arrow rework, pull requests 16 to 18. Today
Kirill decides. Until then, pull requests 4 to 15 keep building the engine behind internal entry points, which costs nothing for users; if nobody decides, the stack stops before pull request 16 and DBI's default methods stay. Generated by Claude Code |
Resolved: may one result mix data-frame and Arrow fetches?For the Arrow rework, pull requests 9, 10 and 16. #795 and #796 let
Kirill decides, and r-dbi/DBI#773 may settle it for all backends. Until then, the internal entry points stay neutral: #859 lets the two kinds of fetch alternate without losing or repeating rows, and #862 refuses Generated by Claude Code |
Handover: the Arrow rework continues in a fresh sessionKirill asked to move this work to a fresh session once the work in flight was done. This comment is the starting point for it; the plan and the pull requests hold everything else. Ready for the maintainer (clean reviews posted, findings fixed or listed in each pull request's last "Accepted limitations" comment, CI green):
In progress: #863 (pull request 8, Arrow chunks end before string and binary offsets overflow, plus a fix that keeps the storage classes of the read-ahead row; head 06df15e, merged with #862's head, no conflict). Its first clean review has not run yet. Next steps:
Open questions (each states what happens if nobody decides):
Check-ins on this pull request continue in the new session, as Kirill's rules describe: read every open pull request of this work for comments and reviews without the Claude Code footer, Brief given to every implementing subagent# Rules for implementing one pull request of the Arrow rework in r-dbi/RSQLite
You implement exactly one pull request. Do the work yourself; do not start subagents.
## Context
- r-dbi/RSQLite is public. Write nothing private into code, commits or the description.
- The plan for the whole rework is the comment https://github.com/r-dbi/RSQLite/pull/829#issuecomment-6830171193 (read it with `gh api repos/r-dbi/RSQLite/issues/comments/6830171193 --jq .body`).
Only `gh api` works here, not `gh pr` or `gh issue`.
- The old Arrow stack is the reference, not something to rebase:
#795 head 43db19f5, #796 92b3e736, #800 ef68461a, #801 6bb1e8c3, #802 019fbf65, #807 c70faa2f, and the top #831 34363581.
The old stack forks from 07129cea, not from `main`, so compare with three dots (`git diff 07129cea...34363581`).
Each old pull request's last comment, headed "Accepted limitations", and its review comments name known problems; do not carry those over where the new scope makes a fix easy.
- The new stack sits on #830 (`claude/fix-error-mid-result`), which sits on #850 (`claude/fetch-row-ahead`).
Keep their behavior: the one-row read-ahead cache, `step_error` carrying the SQLite result code, kept errors raised by the next fetch,
any error leaving a fetch completing the result, and the busy guard that makes `dbClearResult()` refuse while a fetch or bind runs.
- The main checkout is `/home/user/RSQLite`. Create your worktree from there:
`git -C /home/user/RSQLite fetch origin <base>` and `git -C /home/user/RSQLite worktree add -b <branch> <worktree> origin/<base>`.
If the branch or worktree already exists, reuse it and say so.
## Code
- Keep the change to the scope you were given; mention anything else you notice in your report instead of fixing it.
- Do not merge the base branch into yours unless the coordinator asks or a conflict needs it.
- In R code, where the package already uses cli, stop with `cli::cli_abort()` when a required input is missing or inconsistent, rather than substituting a default.
- Every `test_that()` block must pass on its own right after `pkgload::load_all()`:
inline its fixture, or define the fixture in a `tests/testthat/helper-*.R` file. A fixture at the top level of a test file does not count.
- Test what the change does, and for a refactor pin the behavior it must keep (messages, classes, results) with tests that also pass on the base.
- After changing C++ entry points, run `cpp11::cpp_register()`. After changing roxygen comments, run `devtools::document()`,
and revert unrelated churn it causes in files you did not mean to touch.
- `src/*.dd` files are checked-in dependency lists. gcc writes their continuation lines with one leading space and absolute system header paths,
which the filter in `src/Makevars.deps` does not drop (#836). Never commit a `.dd` file that gains absolute paths:
restore it with `git checkout`, or edit it by hand to list only package-relative dependencies in the style of the existing files.
A new source file gets a new `.dd` file in that style only if the other source files have one.
- Code comments follow the file's conventions and use semantic line breaks: break at sentence or clause boundaries, never mid-phrase.
- There is no `air.toml`, so do not reformat R code wholesale; match the surrounding style.
- Build and test: `R CMD INSTALL` or `pkgload::load_all()`, the changed test files, then `devtools::test()` with `NOT_CRAN=true`.
The three errors in `test-httpvfs.R` happen on `main` as well (#832, #837) and are not yours.
Run `R CMD check --no-manual` once at the end when the change touches the build, DESCRIPTION, NAMESPACE or documentation.
## Commits and push
- One or a few commits with a Conventional Commits subject; code in backticks, function names with `()`.
Commit bodies use semantic line breaks. End every commit message with these two lines, after a blank line:
```
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
```
- Push with `git push -u origin <branch>`. On a network error retry up to four times, waiting 2, 4, 8 and 16 seconds.
Never force-push, and never push to any other branch.
- Do not open the pull request, and post nothing on GitHub; the coordinator does that.
## Deliverables
- A description draft at the path you were given, in Markdown with reflowed paragraphs (no line breaks inside a paragraph, since GitHub renders them).
Say what changes and why, what is deliberately left out and where it comes later, how it was tested, and where it sits in the stack.
Name pull requests as `#123`, and never write a bare `@` mention. No title line and no footer.
- Your final report, terse and without a narrative of your steps: the branch and head SHA, what changed (files with hand-written line counts),
the tests run and their results, any deviation from the scope, the risks a reviewer should look at, and what is left.
## Disk
The disk is shared with other agents and filled up once.
Install test builds into libraries under the scratchpad, and delete those libraries, extra worktrees and large logs when you finish; keep only your own branch's worktree.Brief given to every reviewing subagent (clean context, Opus)# Rules for a clean review of one pull request in r-dbi/RSQLite
You review with a clean context: form your own view from the code, the description and running it, not from anyone's summary.
Post nothing on GitHub and change no branch; work in a detached worktree of your own under `/home/user/wt/review-<name>`
(`git -C /home/user/RSQLite worktree add --detach <path> <sha>`), and build into a separate library so that you do not disturb other worktrees.
Only `gh api` works here, not `gh pr` or `gh issue`.
## What to do
- Read the description, the diff against its base, the code around the change, and the tests.
- Build the pull request and its base. Run the changed tests against both, and every changed or added `test_that()` block on its own right after `pkgload::load_all()`.
- Run `devtools::test()` with `NOT_CRAN=true`; the three `test-httpvfs.R` errors happen on `main` too (#832, #837).
Run `R CMD check --no-manual` when the change touches the build, DESCRIPTION, NAMESPACE or documentation.
- Write your own reproducers for what could go wrong, especially on the risks named in your brief, and run them.
Use AddressSanitizer or valgrind where memory is a risk.
- Check that the description says what the code does, that the scope matches the title, and that no `src/*.dd` file gains absolute paths.
## The report
Write it to the path you were given, in Markdown with reflowed paragraphs (no line breaks inside a paragraph), in this shape:
1. A first paragraph that starts "Review of this pull request at <short sha>, by a Claude Code reviewer with clean context that ..." and says what you read, built and ran, and that you posted nothing yourself.
2. **What was run**, as a short list.
3. **What holds**, as a short list of what you verified.
4. `### High`, `### Medium`, `### Low`, each with numbered findings or "None.".
Each finding: a bold one-line claim, a link to the line pinned to the commit (`https://github.com/r-dbi/RSQLite/blob/<full sha>/<path>#L<a>-L<b>`),
the evidence with "(Confirmed)" when you reproduced it by running code or "(by reading)" otherwise, and a "Suggested fix:".
High means wrong results, a crash, data loss or a security problem on a path users reach; Medium means a real defect or a gap that matters but is not High;
Low means everything else worth fixing or noting.
5. End with a blank line, `---`, and `_Generated by [Claude Code](https://claude.ai/code)_`.
Name pull requests as `#123`, never write a bare `@` mention, and keep the report under about 1200 words.
Your final answer, terse and without a narrative of your steps: the path of the report and one line per finding with its severity.
## Disk
The disk is shared with other agents and filled up once.
When you finish, remove your worktrees with `git -C /home/user/RSQLite worktree remove --force <path>` and delete the libraries and large logs you created; keep only the report and small reproducer scripts.Generated by Claude Code |
Resolved: fix
|
Resolved: merge #853 ahead of the Arrow stack?#853 stops gcc's continuation lines from writing absolute paths into
Kirill decides, since merging is his. If nobody decides, the restores continue and the full matrix waits. Generated by Claude Code |
|
Merged #853 and responded to questions. |
|
Handed over to a fresh session, as asked: the coordination continues on #880, whose description records the state and the open questions. The plan and the answered questions here still hold. New questions go to #880. Generated by Claude Code |
|
Closing this pull request: the coordination of the Arrow rework continues in #880, whose description records the state and links each open question. All questions still open here, and the open ones from the stack's pull requests that awaited the maintainer, are reposted there as their own comments; the originals are marked "Moved:" and link to their new place. The plan stays the reference for the rework, and the questions resolved here still hold. Generated by Claude Code |
This pull request carries no code, only an empty commit. It records the review of every open pull request in this repository: the state of each one, and the questions for the maintainer, each posted as its own comment below. It is closed once the open pull requests are resolved.
Reviews run on Opus from 2026-11-10 15:45 UTC on, as the maintainer asked; the earlier ones ran on Fable.
Arrow rework (current)
On 2026-11-12 the maintainer asked to rework the Arrow stack below from scratch into scoped, human-reviewable pull requests, starting with the less controversial changes; the plan lists 23 of them. The work moved to a fresh session on 2026-11-12, as asked; the handover comment has the state, the next steps and the open questions.
main: fix:dbConnect()on a connection keepsbigint,extended_typesandcheck_utf8#852, build: Keep system headers out of the generated.ddfiles on gcc's continuation lines #853, test: Declare DBItest 1.8.3.6 in the DBItest context #854 and fix: Count rows in 64 bits, so thatdbGetRowCount()anddbGetRowsAffected()stay right beyondINT_MAX#858, each with clean reviews and an "Accepted limitations" comment; CI greendbFetch()ordbBind()#830: refactor: Bind list parameters through a parameter source #855, refactor: Own results through a shared pointer, as connections are #856, build: Vendor the nanoarrow C library #857, feat: Build Arrow arrays from the integer, real and NULL columns of a result #859, feat: Build Arrow arrays from text and blob columns #860, feat: Build Arrow date, time and timestamp arrays withextended_types#861 and feat: Report values converted to an Arrow column's type once per chunk, with their rows #862 (pull requests 1 to 7), each with clean reviews and an "Accepted limitations" comment; CI green, the full matrix for build: Vendor the nanoarrow C library #857Arrow stack (superseded by the rework)
Each pull request of the stack was reviewed by a clean-context agent on 2026-09-27, then fixed and re-reviewed layer by layer, and merged bottom up so that every branch contains the final version of the one below. All review threads are answered and resolved, and every description is current. Two integration reviews of the whole stack at its top are posted below. The first (071560e) found one Medium and nine Low findings. The second (d451398) found one High, R's
ISNAN()called on arrow's worker threads, and two Medium ones, the busy mark during arrow's read-ahead and a deferred release that kept a result locked. All are fixed in #795 up to 68a0575 and merged up the stack; AddressSanitizer is clean, and an interposer counts no R call off R's main thread. No further review round is planned for the stack. Every layer has a current "Accepted limitations" comment.dbFetch()ordbBind()#830 frommain; mixing data-frame and Arrow fetches is unspecified in DBI, now Mixing data-frame and Arrow fetches on one result set is not specified DBI#773; the byte-cut wording is corrected; the large Arrow tests run on GitHub Actions only. See its "Accepted limitations" comment, which carries the maintainer's decisionsarrowargument todbConnect()to route data frames through Arrow #796 (92b3e73): two clean reviews, all findings fixed or documented; data frame fetches typed like the default path, compared over thousands of random tables; CI greendbFetch(), with their rows #800 (ef68461): two clean reviews, all findings fixed or documented; thedbFetch()coercion warning is raised after the fetch, so handlers can use the result; on arrow's worker threads a coercion fails the stream instead; CI greenschema#801 (6bb1e8c): two clean reviews, all findings fixed; every requested type passes Arrow's full validation,uint64values beyond 2^63 read as double, anddbColumnInfo()follows the requested schema; CI greenptype#802 (019fbf6): reviewed, every promise of the description checked with tests;POSIXctandhmsprototypes read like the default path,ptypetogether withschemais refused, anddbColumnInfo()reports the prototype classes; CI greenlazy_stringsas an option #807 (c70faa2): reviewed, all findings fixed; eager fetches use the layers below, the column split serveslazy_stringsonly; the 2 GiBlazy_stringstest runs on GitHub Actions in 64 MiB chunks; CI greendbitest_version = "1.8.3.6"in its own layer on top of feat: Convert data frames column by column, withlazy_stringsas an option #807, as asked on feat: Implement the DBI Arrow interface natively #795; feat: Convert data frames column by column, withlazy_stringsas an option #807 reverts its earlier declaration; reviewed, Medium and Low fixed, "Accepted limitations" posted; added to the GitHub stack on 2026-11-10, which starts its CI; CI greenCI runs on every layer of the stack and is green on the newest heads, after the runners' network failure from about 14:00 to 17:00 UTC on 2026-11-11 (see #832).
Other pull requests by the maintainer
mainwas merged into each of them on 2026-11-10, so that CI runs on a current head.dbConnect(check_utf8 = TRUE)#846: the maintainer asked on 2026-11-11 to reimplement fix: Validate blobs that are read into a text column #799 frommainas a stack; feat: Add a UTF-8 validator for strings read from SQLite #845 adds the UTF-8 validator insrc/utf8.cpp(no user-visible change), feat: Check text read into a character column withdbConnect(check_utf8 = TRUE)#846 checks text and blobs read into character columns behinddbConnect(check_utf8 = ), off by default; clean reviews found nothing above Low, their findings are fixed or accepted, and both have their "Accepted limitations" comments; how the option looks and when the Arrow stack uses the shared validator are open questions below; fix: Validate blobs that are read into a text column #799 can be closed once the replacement suits the maintainerrow.namesdefault via pkgconfig, and move pkgconfig to Suggests #805: reviewed, no High or Medium findings; Low findings fixed or accepted (see its "Accepted limitations" comment); CI green, Codecov has hung on "in progress" since 10:17After #788 and #820 were merged, every open branch still merges cleanly with
main.src/vendor/extensions/#836 as an experiment record underexperiments/, following the convention of cynkra/handbook-tools; three clean reviews, all Medium findings fixed; CI greenEvery issue opened along the way has a reproducer, as the maintainer asked on 2026-11-11: #834, #835, #837, #838, #848 and r-dbi/DBI#773 with a reprex, #836 with the experiment record of #849. Every
test_that()block that the open pull requests add or change runs on its own right afterload_all(), with shared fixtures intests/testthat/helper-*.R. On the Arrow stack, the move went intotests/testthat/helper-arrow.Rand was merged up every layer; the top differs from its earlier head only in test files, and its tests pass as before. Test files onmainthat still define fixtures at the top level are left to a separate change.External and stale pull requests
Found along the way
fix: A fetch returns its rows when the step past its last row fails #850 and fix: Never restart a statement after an error in
dbFetch()ordbBind()#830: an SQLite error during a fetch restarted the statement, and a faileddbBind()kept its parameters (A result restarts its statement from the first row after an SQLite error #838, with a reprex). As the maintainer asked on 2026-11-11, fix: A fetch returns its rows when the step past its last row fails #850 keeps the read-ahead but caches its outcome, so no row is lost when the step past a fetch fails, and keeps SQLite's error code with it; fix: Never restart a statement after an error indbFetch()ordbBind()#830, stacked on it, completes the result on any error that leaves a fetch, releases its read lock, and refusesdbClearResult()while a fetch runs, as feat: Implement the DBI Arrow interface natively #795 does; four clean reviews in all, the last of the stack, with every Medium fixed;SQLITE_BUSYbetween parameter sets is A fetch that hits SQLITE_BUSY between parameter sets loses or corrupts rows on retry #848, with a reprex; fix: Never restart a statement after an error indbFetch()ordbBind()#830's description carries a tested recipe for merging the stack into feat: Implement the DBI Arrow interface natively #795; CI greentest: Run the HTTP VFS tests for real, and make their errors fail the check #832 and fix: Stop printing the response headers of every remote open over the HTTP VFS #839 to fix: Let an interrupt abort an HTTP VFS transfer #843: the three HTTP VFS integration tests failed on
maintoo, hidden from testthat's summary; after three clean reviews of the combined fix, the maintainer asked on 2026-11-11 to split it, so it is now a stack of six scoped pull requests: the tests (test: Run the HTTP VFS tests for real, and make their errors fail the check #832), no header output (fix: Stop printing the response headers of every remote open over the HTTP VFS #839), extension loading over the HTTP VFS (fix: Load the default extensions on HTTP VFS connections #840),sqliteRemote()with the default extensions (fix:sqliteRemote()loads the default extensions #841), timeouts (fix: Time out stalled HTTP VFS transfers #842) and interrupts (fix: Let an interrupt abort an HTTP VFS transfer #843); the top has the same tree as the reviewed fa0b234 merged withmain; the clean review of the split is posted; the problems found along the way are filed as HTTP VFS: a remote database opens as empty when its HEAD request fails #834, HTTP VFS: without Range support, opening a database downloads it three times #835, Incremental builds miss changes to bundled extensions undersrc/vendor/extensions/#836 and testthat hides a test's error when the test records another result after it #837https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
Generated by Claude Code