Repository navigation
Conversation
Add nanoarrow 0.9.0 under `src/vendor/nanoarrow/` and link its object into the package, with nothing calling it yet. The sources are the nanoarrow R package's bundled copy, unchanged except for `NANOARROW_NAMESPACE`, which is `RSQLite` so that exported symbols cannot collide with the nanoarrow package or arrow. `cleanup*` and `.Rbuildignore` keep the object file out of the tarball, and DESCRIPTION names the Apache Software Foundation as copyright holder. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
List `src/vendor/nanoarrow/` in `.covrignore`, which covr reads when it builds the report, so that the file never reaches the Codecov upload. Its code is unused for now and would otherwise count as uncovered. `.covrignore` itself is excluded from the tarball. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
|
Review of this pull request at 2136852, by a Claude Code reviewer with clean context that read the description, the diff of its own commit against #856 (2f319a7..2136852), the surrounding build files, workflows and vendored sources, compared them with nanoarrow's CRAN tarball, the upstream release tag and #795 at 43db19f, built the pull request and its base, and ran the checks and reproducers below. I posted nothing on GitHub and changed no branch. What was run
What holds
HighNone. Medium
Low
Generated by Claude Code |
Install `inst/COPYRIGHTS` and copies of nanoarrow's `LICENSE.txt` and `NOTICE.txt` under `inst/licenses/`, so that binaries carry the Apache-2.0 terms, and add `Copyright: See file COPYRIGHTS.` to DESCRIPTION. Define `NANOARROW_DLL` empty so that the object exports no symbol, make `nanoarrow.o` depend on `nanoarrow.h`, mark the one changed line of `nanoarrow.h`, and list nanoarrow in `UPDATE.md` and the vendored README. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
…rrow Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
|
Review of the fixes in this pull request at db8fbdb (the commits since 2136852), by a Claude Code reviewer with clean context that read the description, the first review, 40678e2 and f4e09f5, the bundled sources that the new What was run
What holds
HighNone. MediumNone. Low
Generated by Claude Code |
|
The full matrix (run 43278691220, dispatched by hand on db8fbdb, since same-repository pull requests only get the smoke test) passed 14 of 15 jobs: Ubuntu x64 R 4.2 to 4.6 and devel, Ubuntu arm64 4.6 and devel, Windows x64 4.5, 4.6 and devel, Windows arm64 4.6, and macOS 4.5. The red Generated by Claude Code |
Credit `extension-functions.c` to its original authors as its history does, add `src/import-file.c`, `src/affinity.c` and the extra notice in a Boost header to `inst/COPYRIGHTS`, and make the nanoarrow update steps unpack the tarball into a temporary directory. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
Superseded: Accepted limitationsTwo review rounds: the first found that neither the installed package nor a binary carried nanoarrow's licence and NOTICE (Medium), plus four Lows; f4e09f5 added
Generated by Claude Code |
Superseded: Accepted limitationsSuperseded by the current copy. Two review rounds: the first found that neither the installed package nor a binary carried nanoarrow's licence and NOTICE (Medium), plus four Lows; f4e09f5 added
Generated by Claude Code |
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd432Aef98ibnZSSsYn
Moved: does
|
Question: keep a single copy of nanoarrow's licence and NOTICE?nanoarrow's
Kirill decides. If nobody decides, both copies stay, and the limitation stays checked in the "Accepted limitations". Generated by Claude Code |
Superseded: Accepted limitationsSuperseded by the copy of 2026-11-29. Two review rounds: the first found that neither the installed package nor a binary carried nanoarrow's licence and NOTICE (Medium), plus four Lows; f4e09f5 added
Two findings about bundled code that predate this pull request:
Generated by Claude Code |
…rrow Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd432Aef98ibnZSSsYn
…rrow Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd432Aef98ibnZSSsYn
…rrow Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd432Aef98ibnZSSsYn
…rrow Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd8MVXyvU7qoMeruD1R
Question: should
|
Accepted limitationsTwo review rounds: the first found that neither the installed package nor a binary carried nanoarrow's licence and NOTICE (Medium), plus four Lows; f4e09f5 added The clean review of 2026-11-29, after
Two findings about bundled code that predate this pull request:
Generated by Claude Code |
Third step of the Arrow rework (plan: #829 (comment)): vendor the nanoarrow C library and compile it into the package, with nothing calling it yet. Landing the build change alone is meant to prove that the C sources compile and link on every CI platform before any code depends on them; the full CI matrix (Windows and macOS included) will be run on this branch before merging.
What changes:
src/vendor/nanoarrow/holdsnanoarrow.c,nanoarrow.handnanoarrow.hppof nanoarrow 0.9.0 (the current CRAN release), plusLICENSE.txt,NOTICE.txtand aREADME.mdthat records the origin, the delta and how to update. The three sources are byte-identical tosrc/of the nanoarrow 0.9.0 CRAN tarball except for one line,#define NANOARROW_NAMESPACE RSQLite(upstreamRPkg), which prefixes every exported symbol so that it cannot collide with the nanoarrow package's own copy or the one in arrow.LICENSE.txtandNOTICE.txtmatch the release tagapache-arrow-nanoarrow-0.9.0.src/MakevarsdefinesNANOARROW_DLLempty so that the symbols are not exported from the shared object, makes the object depend onnanoarrow.h, and linksvendor/nanoarrow/nanoarrow.onext tovendor/sqlite3/sqlite3.o, the same way (there is nosrc/Makevars.win, so Windows uses the same file).cleanup,cleanup.ucrt,cleanup.winand.Rbuildignorealso remove and ignore the nanoarrow object file, so that it does not end up in the source tarball.inst/COPYRIGHTSandinst/licenses/install the Apache-2.0 licence and the NOTICE with the package (so that binaries carry them) and list the terms of the other bundled code as far as the sources state them;DESCRIPTIONhasCopyright: See file COPYRIGHTS., and lists the Apache Software Foundation as copyright holder (cph) for the included nanoarrow sources.Deliberately left out:
ImportsorLinkingTo: nothing uses its R-side helpers (nanoarrow/r.h) yet, and those come in with the first code that needs them..covrignorekeepssrc/vendor/nanoarrow/out of the coverage report, so that the unused library does not lower the project number on Codecov; the bundled SQLite is left as it was..ddfile for the vendored object:src/Makevars.depsonly includes the.ddfiles of the package's own objects, and the existingsrc/vendor/sqlite3/sqlite3.ddis not read by anything.Tested:
RSQLiteand, withNANOARROW_DLLempty, none of them is exported:nm -D --defined-onlyon the builtRSQLite.solists the same 129 symbols as the base. Touchingnanoarrow.hrecompiles the object..sogrows by about 215 KB (11.67 MB to 11.89 MB, +1.9%); compilingnanoarrow.ctakes about 1.3 s, which is lost in the noise of the whole build.R CMD buildputs the six files undersrc/vendor/nanoarrow/into the tarball and no object files;R CMD check --no-manualpasses with no error or warning, and no compiler warning from nanoarrow (the one NOTE is a.gitfile that comes from building out of a git worktree).Sits on #856, which is on #855, #830 and #850.
Review
Two review rounds (first, second) led to 40678e2, f4e09f5 and 62e252d; see the accepted limitations, which include two questions about bundled code that predate this pull request.
https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
Generated by Claude Code