Skip to content

feat: End Arrow chunks before string and binary offsets overflow - #863

Draft
krlmlr wants to merge 17 commits into
claude/arrow-coercion-reportsfrom
claude/arrow-byte-limits
Draft

krlmlr wants to merge 17 commits into
claude/arrow-coercion-reportsfrom
claude/arrow-byte-limits

Conversation

@krlmlr

@krlmlr krlmlr commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Eighth step of the Arrow rework (plan: #829 (comment)): an Arrow chunk now ends before a row whose text or blobs would take a utf8 or binary column beyond the 2^31 - 1 bytes that the 32-bit offsets of these types address, and the next chunk starts with that row. Before, such a chunk failed with "Can't append to Arrow array", and the error completed the result (#860). The entry point result_fetch_arrow_chunk() stays internal, so nothing changes for users.

What changes:

  • result_fetch_arrow_chunk(res, n) returns fewer than n rows, also for n = -1, when the next row doesn't fit, and never fails for the size of a chunk alone. A chunk takes at least one row: a value beyond the limit on its own fails the chunk that it would start, after the chunk before it has come out, with "Column s: a value of 11 bytes exceeds the 10 bytes that an Arrow utf8 or binary array can hold." As any error of a fetch since fix: Never restart a statement after an error in dbFetch() or dbBind() #830, it completes the result. With the real limit, no value gets there: SQLite holds at most 2^31 - 1 bytes per value (SQLITE_MAX_LENGTH in Makevars), so the error only guards the lowered limits of the tests.
  • The check counts what the append adds: the bytes of text and blobs, the text that SQLite renders for a number in a utf8 or binary column, and nothing for NULL and for text and blobs that are NULL in a utf8 column as not valid UTF-8. A column still undecided in the first chunk counts its value for the type that the value would give it. Each column has its own limit; the first one that a row would overflow ends the chunk.
  • fetch_loop() asks takes_row() before each row: ArrowChunk checks the bytes there, SqliteDataFrame takes every row. A row that the chunk doesn't take stays the current row of the statement, as the row read ahead past a full chunk does (fix: A fetch returns its rows when the step past its last row fails #850), and no step happens. So dbHasCompleted() is FALSE and dbGetRowCount() counts the rows handed out. A step error after the held-back row comes with the fetch that steps past it: it fails that fetch, or is kept for the next one if that fetch is full and only reads ahead.
  • Each value is read once for the check and the append: SqliteArrowColumn::read_type() reads its storage class before anything converts it, read_bytes() reads the bytes of a utf8 or binary value and checks its UTF-8, and append_row() uses both. A held-back row keeps its storage classes for the next chunk until the next step clears them, since reading the row as a data frame meanwhile, with dbColumnInfo() or dbFetch(n = 0), converts a blob in a character column to text. Its bytes are read again by the next chunk, as such a read can move them.
  • Conversions are logged when a value is appended, never by the check, so the conversions of a held-back row are reported by the chunk that returns it, with its row number in the result (feat: Report values converted to an Arrow column's type once per chunk, with their rows #862).
  • A dbFetch() after a held-back row returns it first, reading its storage classes itself. The check has rendered a number in a utf8 or binary column as text, after which SQLite documents sqlite3_column_type() as undefined; the bundled SQLite keeps the class of a number next to its text, which dbColumnInfo() followed by dbFetch() already relies on, and a test pins it. The check doesn't convert text or blobs: a blob in a utf8 column keeps its bytes (feat: Build Arrow arrays from text and blob columns #860).
  • dbBind() starts a new execution with its own first row, and keeps the limit of the result.
  • The internal result_set_arrow_max_bytes() lowers the limit of one result, so that the tests need little memory. It refuses a limit that isn't a whole number between 0 and 2^31 - 1.

The row read ahead past a full fetch (#850) now keeps its storage classes as well, in a commit of its own (fix: Keep the storage classes of an Arrow row read ahead). On #862, the next Arrow chunk read them only when it took the row, so a dbColumnInfo() or dbFetch(n = 0) in between, which reads the row as a data frame and converts a blob in a character column to text, made the chunk take the blob for text and leave it out of the warning. Now read_ahead() has the Arrow columns read the storage classes of the row at once, after an Arrow chunk and after a data-frame fetch between Arrow chunks, and the next chunk keeps them until the next step, as for a held-back row. Before the first Arrow chunk of an execution there are no Arrow columns yet: a data-frame fetch and a dbColumnInfo() before it still leave that chunk to read the converted classes, as on #862.

The design comes from #795: 569fe5d (end the chunk before the row), 943b178 (read each value once), c0891bf (keep the storage classes of a held-back row), 3f988e8 (the limit of one result instead of a global hook) and 1449720 (the hook for the large test in GitHub Actions). Where it differs:

Deliberately left out:

Tested:

  • New tests/testthat/test-arrow-chunks.R, with the limit lowered to 6 to 150 bytes: chunks end exactly before the row that would overflow, with the first row of a chunk at the limit, a value of no bytes in a full column, and n ending a chunk before or after the limit, for text and for blobs, with no row lost or repeated; several text and blob columns with numbers and NULL, where each column ends a chunk, a number counts the bytes of its text and text that isn't valid UTF-8 counts nothing; the read-ahead boundary, with a step error after the rows: a chunk ended by the limit before it, the next one full and keeping the error, or asking for more rows and failing, and the row stepped past a full chunk reading its own storage classes; conversions of a held-back row reported with the chunk that returns it, with their row numbers after a dbFetch(), and a blob held back across a dbColumnInfo() that converts it to text still reported as a blob; a value beyond the limit on its own, failing after the rows before it and in the first row of a result, with the result completed; dbFetch() after a held-back row and dbBind() starting anew. dbHasCompleted() and dbGetRowCount() are checked after each chunk. A last test fetches blobs of 1e9, 1.2e9 and 1 bytes with the real limit, in chunks of 1 and 2 rows; it needs about 2.5 GB of memory (2.49 GB peak measured, 5 s) and runs only with RSQLITE_TEST_LARGE_ARROW=true, after skip_on_cran().
  • .github/workflows/custom/after-install/action.yml sets RSQLITE_TEST_LARGE_ARROW=true where it is unset, as 1449720 did, so every hosted job that calls the hook runs the 2.5 GB test: in R-CMD-check.yaml, rcc-smoke with its coverage run, each entry of the rcc-full matrix of operating systems and R versions, its coverage entries included, and each entry of rcc-suggests; and in R-CMD-check-dev.yaml, the daily rcc dev base job and each job per dev dependency. R-hub's containers call no custom action and skip it, as do CRAN and users. Reviewers may weigh that cost against the coverage; dropping the hook keeps the test off everywhere unless the variable is set.
  • tests/testthat/helper-arrow.R: write_sized_table(), local_limited_result(), fetch_arrow_chunks() and chunk_lengths().
  • New test of the read-ahead fix: a blob read ahead after an Arrow chunk and after a data-frame fetch, converted to text by dbColumnInfo(), is still reported as a converted blob by the next chunk. It fails without the fix.
  • Each test_that() block of the five Arrow test files (test-arrow-chunks.R, test-arrow-coercion.R, test-arrow-columns.R, test-arrow-text.R and test-arrow-dates.R) passes on its own in a fresh session right after pkgload::load_all(): 57 blocks pass, and three skip there, the large test and the two out-of-memory blocks whose callr sessions need an installed build.
  • Mutations, each caught by the new tests: < for <= at the limit, numbers counting nothing, invalid UTF-8 counting its bytes, failing a value beyond the limit also after other rows, reading the storage classes anew for a held-back row, not clearing them at a step, and no check at all.
  • Against an installed build, the five Arrow test files, test-read-ahead.R and test-extendedTypes.R pass, the large test and the out-of-memory blocks included.
  • Under AddressSanitizer (gcc, -O1), after the merge and the read-ahead fix, test-arrow-chunks.R with the large test, test-arrow-coercion.R, test-arrow-columns.R, test-arrow-text.R, test-arrow-dates.R, test-read-ahead.R, test-dbSendQuery.R, test-dbClearResult.R, test-error.R, test-dbBind.R and test-extendedTypes.R pass without a report, and so does a script of 300 random tables of text, numbers, blobs and NULL with random limits and chunk sizes and dbColumnInfo() between chunks, 2820 chunks in all, which checks that no chunk holds more than the limit in a column and that no row is lost.
  • devtools::test() with NOT_CRAN=true: no failures beyond the three errors in test-httpvfs.R that also happen on main (test: Run the HTTP VFS tests for real, and make their errors fail the check #832, testthat hides a test's error when the test records another result after it #837).

Cost of the check, measured before the merge and the read-ahead fix, which only moves the reading of one row's storage classes per full fetch to the read-ahead: one million rows from a file database in one chunk, -O2, median of 11 runs, seven rounds alternating between #862 and this branch. One text column of about 20 bytes: 0.114 to 0.126 s on both. Three text columns: 0.264 to 0.276 s on #862, 0.275 to 0.285 s here, about 4 %. One blob column: 0.113 to 0.122 and 0.114 to 0.123 s. An integer, a text, a real and a blob column: 0.288 to 0.311 and 0.309 to 0.319 s, about 4 %. The three text columns in chunks of 100 rows: 0.417 to 0.468 and 0.435 to 0.475 s, about 3 %. #795 measured about 6 %. The check moves the reads of the append rather than adding any, and a variant that reads the storage classes and the bytes in one pass over the columns measured the same.

After the clean review, f61447c restores the src/*.dd files that CI's auto-update filled with absolute paths (#836, fixed by #853), and 975e379 answers two of its Lows: the CI hook's comment names rcc dev, and the setter refuses a fractional limit.

Sits on #862 at ea9f836 (merged into this branch, with #862's review fixes), which is on #861, #860, #859, #857, #856, #855, #830 and #850, and merges #845. The merge resolves two conflicts: a binary value is read before its conversion is logged on both sides, here in read_bytes(), and the comment of fetch_arrow_chunk() keeps both the kept chunk and the byte limit.

Size

About 190 hand-written lines of C++: 80 in SqliteArrowColumn.cpp and .h, 90 in SqliteResultImpl.cpp and .h with the read-ahead fix, and 20 in SqliteResult, SqliteDataFrame.h and result.cpp; 335 lines of tests, 280 in test-arrow-chunks.R and 55 in helper-arrow.R; and 12 lines of the CI hook. That is about 540 in all, within the plan's 600. No .dd file changes, since no file includes a new header.

https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE

https://claude.ai/code/session_01Hr1rd432Aef98ibnZSSsYn


Generated by Claude Code

A chunk whose text or blobs took a `utf8` or `binary` column beyond the 2^31 - 1 bytes that their 32-bit offsets address
failed with "Can't append to Arrow array", and the error completed the result.
Now the chunk ends before such a row, which stays the current row of the statement and starts the next chunk,
so that `result_fetch_arrow_chunk()` returns fewer than `n` rows there and never fails for the size of a chunk alone.
A value beyond the limit on its own fails the chunk that it starts, naming the column and the limit,
which only the lowered limits of the tests can reach.

The check counts what the append adds: the bytes of text and blobs, the text of a number,
and nothing for `NULL` or for values that are `NULL` as not valid UTF-8.
Each value is read once for the check and the append.
A row held back keeps its storage classes for the next chunk until the next step,
and reports its conversions with the chunk that returns it.

`result_set_arrow_max_bytes()` lowers the limit of one result for the tests in the new `test-arrow-chunks.R`.
A test with blobs near 2 GiB needs about 2.5 GB of memory and runs only with `RSQLITE_TEST_LARGE_ARROW=true`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
The test peaks at about 2.5 GB of memory and stays off unless `RSQLITE_TEST_LARGE_ARROW` is true.
The `custom/after-install` hook sets it where it is unset,
which reaches the jobs of `R-CMD-check.yaml` that call the hook on the hosted runners.
The R-hub containers call no custom action, so the sanitizers and valgrind skip the test, as do CRAN and users.
A value set before the hook wins.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
@krlmlr
krlmlr added this pull request to stack #851 November 12, 2026 20:43
…imits

A `binary` value is read before its conversion is logged on both sides:
the base reads it at the append, this branch in `read_bytes()` before the append,
which the append keeps.
The comment of `fetch_arrow_chunk()` keeps the kept chunk and the byte limit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
A fetch that is full reads the next row ahead, and the next Arrow chunk read that row's storage classes only when it took the row.
Reading the row as a data frame in between, with `dbColumnInfo()` or `dbFetch(n = 0)`, converts a blob in a character column to text,
so that the chunk took the blob for text and didn't report it as converted.
Now the Arrow columns read the storage classes of a row read ahead at once,
after an Arrow chunk and after a data frame fetch between Arrow chunks,
and keep them for the next chunk, as for a row that a chunk held back.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
krlmlr and others added 2 commits November 12, 2026 20:56
The CI's auto-update regenerated `src/SqliteArrowColumn.dd`, `src/SqliteResultImpl.dd` and `src/cpp11.dd` with GCC,
whose dependency output indents continuation lines by one space,
which the filter in `src/Makevars.deps` does not drop,
so the files gained hundreds of absolute and vendored paths and lost package-relative entries (#836).
This restores them as they were at 06df15e
and keeps the auto-update's formatting of the `src/*.cpp` files.

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

krlmlr commented Nov 12, 2026

Copy link
Copy Markdown
Member Author

Review of this pull request at 06df15e, by a Claude Code reviewer with clean context that read the description, the diff against #862 (claude/arrow-coercion-reports at ea9f836), the surrounding fetch loop, read-ahead, bind and peek code, the new tests and the CI workflows; built the pull request, its base and the current branch head (383a042) into separate libraries; and ran the tests, the large test, reproducers of its own, valgrind and a benchmark. I posted nothing on GitHub myself.

What was run

  • R CMD INSTALL of 06df15e, ea9f836 and 383a042 into private libraries.
  • The Arrow test files, test-read-ahead.R and test-extendedTypes.R against the installed pull request and base, with NOT_CRAN=true RSQLITE_TEST_LARGE_ARROW=true.
  • Each of the 8 test_that() blocks of test-arrow-chunks.R alone in a fresh session right after pkgload::load_all(), the large one included.
  • devtools::test() with NOT_CRAN=true.
  • Reproducers (repro.R, repro2.R) for the risks of the brief, and these plus test-arrow-chunks.R and test-read-ahead.R under valgrind.
  • A benchmark of one million rows (one and three text columns, chunks of all rows and of 100 rows), alternating base and pull request, median of 9.
  • The CI matrix from the scheduled run of 2026-11-11 and the workflows that call custom/after-install.

What holds

  • All Arrow, read-ahead and extended-type tests pass on the pull request; on the base, every block of test-arrow-chunks.R errors (the limit setter does not exist), and the read-ahead block also fails, so the new tests do discriminate. Each block passes alone after load_all().
  • devtools::test(): 931 results, no failures beyond the three test-httpvfs.R errors known from main (test: Run the HTTP VFS tests for real, and make their errors fail the check #832, testthat hides a test's error when the test records another result after it #837).
  • The large test passes locally: lengths c(1, 2), peak RSS 2.49 GB, about 5 s. On the base it errors, as intended.
  • Boundaries (Confirmed): a value exactly at the limit starts and fills a chunk; with a limit of 0, empty strings, empty blobs and NULL all go in one chunk, and a 1-byte value fails with the documented message after them, completing the result with dbGetRowCount() = 3; the same value as the first row fails with 0 rows counted. n and the limit ending a chunk at the same row are consistent.
  • Held-back row and dbFetch() (Confirmed): an integer or real rendered as text by the check comes back from dbFetch(n = 1) as int 12345 and num 1.5; dbFetch(-1) and dbColumnInfo() followed by dbFetch() give exactly what a plain data-frame query from that row gives on the base (including the pre-existing "mixed type" coercion). Mixed Arrow, data frame, Arrow with four column types returns every row once with the right values and the Arrow types of the first chunk.
  • Interactions (Confirmed): with options(warn = 2) on a chunk ended by the limit that has a conversion, the chunk is kept (feat: Report values converted to an Arrow column's type once per chunk, with their rows #862), dbFetch() refuses, dbColumnInfo() works, and the kept chunk, the held-back row and the rest follow with the right row numbers in the log; a blob held back across dbColumnInfo() is still reported as a converted blob, also in a UTF-16LE database, with identical bytes; dbBind() after a held-back row starts anew; the step error after a held-back row behaves as the tests pin (fix: Never restart a statement after an error in dbFetch() or dbBind() #830, fix: A fetch returns its rows when the step past its last row fails #850).
  • valgrind: 0 errors for the reproducers and the two test files.
  • Hot path: no measurable cost; base vs. pull request medians 0.111 to 0.113 vs. 0.109 to 0.115 s (one column), 0.263 to 0.278 vs. 0.277 to 0.286 s (three columns), 0.48 to 0.505 vs. 0.44 to 0.48 s (three columns in chunks of 100), within the noise of this machine.
  • CI: the hook runs in rcc-smoke (check and coverage), every rcc-full entry (ubuntu-26.04 x86 with R 4.2 to devel, ubuntu-26.04-arm, macos-latest arm64 with 7 GB, windows-latest and windows-11-arm with 16 GB) and the eight rcc-suggests jobs; all are 64-bit with at least 7 GB, so 2.5 GB and a few seconds fit. R-hub, CRAN and users skip it.
  • No src/*.dd changes in the reviewed commits; description and title match the code.

High

  1. The current branch head 383a042 does not build outside CI: the auto-update commit after the reviewed head wrote absolute paths into src/SqliteArrowColumn.dd.
    /home/runner/work/_temp/Library/cpp11/include/cpp11/R.hpp \
    /home/runner/work/_temp/Library/cpp11/include/cpp11/altrep.hpp \
    /home/runner/work/_temp/Library/cpp11/include/cpp11/as.hpp \
    /home/runner/work/_temp/Library/cpp11/include/cpp11/attribute_proxy.hpp \
    /home/runner/work/_temp/Library/cpp11/include/cpp11/data_frame.hpp \
    /home/runner/work/_temp/Library/cpp11/include/cpp11/doubles.hpp \
    /home/runner/work/_temp/Library/cpp11/include/cpp11/environment.hpp \
    /home/runner/work/_temp/Library/cpp11/include/cpp11/external_pointer.hpp \
    /home/runner/work/_temp/Library/cpp11/include/cpp11/function.hpp \
    /home/runner/work/_temp/Library/cpp11/include/cpp11/integers.hpp \
    /home/runner/work/_temp/Library/cpp11/include/cpp11/list.hpp \
    /home/runner/work/_temp/Library/cpp11/include/cpp11/list_of.hpp \
    /home/runner/work/_temp/Library/cpp11/include/cpp11/logicals.hpp \
    /home/runner/work/_temp/Library/cpp11/include/cpp11/matrix.hpp \
    /home/runner/work/_temp/Library/cpp11/include/cpp11/named_arg.hpp \
    /home/runner/work/_temp/Library/cpp11/include/cpp11/protect.hpp \
    /home/runner/work/_temp/Library/cpp11/include/cpp11/r_bool.hpp \
    /home/runner/work/_temp/Library/cpp11/include/cpp11/r_string.hpp \
    /home/runner/work/_temp/Library/cpp11/include/cpp11/r_vector.hpp \
    /home/runner/work/_temp/Library/cpp11/include/cpp11/raws.hpp \
    /home/runner/work/_temp/Library/cpp11/include/cpp11/sexp.hpp \
    /home/runner/work/_temp/Library/cpp11/include/cpp11/strings.hpp \
    /opt/R/4.6.2/lib/R/include/R_ext/Arith.h \
    /opt/R/4.6.2/lib/R/include/R_ext/Boolean.h \
    /opt/R/4.6.2/lib/R/include/R_ext/Complex.h \
    /opt/R/4.6.2/lib/R/include/R_ext/Error.h \
    /opt/R/4.6.2/lib/R/include/R_ext/Memory.h \
    /opt/R/4.6.2/lib/R/include/R_ext/Print.h \
    /opt/R/4.6.2/lib/R/include/R_ext/Rdynload.h \
    /opt/R/4.6.2/lib/R/include/R_ext/Utils.h \
    /opt/R/4.6.2/lib/R/include/R_ext/libextern.h \
    /opt/R/4.6.2/lib/R/include/Rconfig.h \
    /opt/R/4.6.2/lib/R/include/Rinternals.h \
    /opt/R/4.6.2/lib/R/include/Rversion.h \
    /usr/include/asm-generic/bitsperlong.h \
    /usr/include/asm-generic/errno.h \
    /usr/include/asm-generic/posix_types.h \
    /usr/include/asm-generic/types.h \
    /usr/include/assert.h \
    /usr/include/c++/15/algorithm \
    /usr/include/c++/15/backward/auto_ptr.h \
    /usr/include/c++/15/backward/binders.h \
    /usr/include/c++/15/bits/algorithmfwd.h \
    /usr/include/c++/15/bits/align.h \
    /usr/include/c++/15/bits/alloc_traits.h \
    /usr/include/c++/15/bits/allocated_ptr.h \
    /usr/include/c++/15/bits/allocator.h \
    /usr/include/c++/15/bits/atomic_base.h \
    /usr/include/c++/15/bits/atomic_lockfree_defines.h \
    /usr/include/c++/15/bits/atomic_wait.h \
    /usr/include/c++/15/bits/basic_ios.h \
    /usr/include/c++/15/bits/basic_ios.tcc \
    /usr/include/c++/15/bits/basic_string.h \
    /usr/include/c++/15/bits/basic_string.tcc \
    /usr/include/c++/15/bits/char_traits.h \
    /usr/include/c++/15/bits/charconv.h \
    /usr/include/c++/15/bits/concept_check.h \
    /usr/include/c++/15/bits/cpp_type_traits.h \
    /usr/include/c++/15/bits/cxxabi_forced.h \
    /usr/include/c++/15/bits/cxxabi_init_exception.h \
    /usr/include/c++/15/bits/enable_special_members.h \
    /usr/include/c++/15/bits/erase_if.h \
    /usr/include/c++/15/bits/exception.h \
    /usr/include/c++/15/bits/exception_defines.h \
    /usr/include/c++/15/bits/functexcept.h \
    /usr/include/c++/15/bits/functional_hash.h \
    /usr/include/c++/15/bits/hash_bytes.h \
    /usr/include/c++/15/bits/hashtable.h \
    /usr/include/c++/15/bits/hashtable_policy.h \
    /usr/include/c++/15/bits/invoke.h \
    /usr/include/c++/15/bits/iterator_concepts.h \
    /usr/include/c++/15/bits/locale_classes.h \
    /usr/include/c++/15/bits/locale_classes.tcc \
    /usr/include/c++/15/bits/locale_facets.h \
    /usr/include/c++/15/bits/locale_facets.tcc \
    /usr/include/c++/15/bits/localefwd.h \
    /usr/include/c++/15/bits/max_size_type.h \
    /usr/include/c++/15/bits/memory_resource.h \
    /usr/include/c++/15/bits/memoryfwd.h \
    /usr/include/c++/15/bits/new_allocator.h \
    /usr/include/c++/15/bits/node_handle.h \
    /usr/include/c++/15/bits/ostream_insert.h \
    /usr/include/c++/15/bits/predefined_ops.h \
    /usr/include/c++/15/bits/ptr_traits.h \
    /usr/include/c++/15/bits/range_access.h \
    /usr/include/c++/15/bits/ranges_algo.h \
    /usr/include/c++/15/bits/ranges_algobase.h \
    /usr/include/c++/15/bits/ranges_base.h \
    /usr/include/c++/15/bits/ranges_cmp.h \
    /usr/include/c++/15/bits/ranges_uninitialized.h \
    /usr/include/c++/15/bits/refwrap.h \
    /usr/include/c++/15/bits/shared_ptr.h \
    /usr/include/c++/15/bits/shared_ptr_atomic.h \
    /usr/include/c++/15/bits/shared_ptr_base.h \
    /usr/include/c++/15/bits/specfun.h \
    /usr/include/c++/15/bits/std_abs.h \
    /usr/include/c++/15/bits/std_mutex.h \
    /usr/include/c++/15/bits/stl_algobase.h \
    /usr/include/c++/15/bits/stl_bvector.h \
    /usr/include/c++/15/bits/stl_construct.h \
    /usr/include/c++/15/bits/stl_function.h \
    /usr/include/c++/15/bits/stl_heap.h \
    /usr/include/c++/15/bits/stl_iterator.h \
    /usr/include/c++/15/bits/stl_iterator_base_funcs.h \
    /usr/include/c++/15/bits/stl_iterator_base_types.h \
    /usr/include/c++/15/bits/stl_pair.h \
    /usr/include/c++/15/bits/stl_raw_storage_iter.h \
    /usr/include/c++/15/bits/stl_tempbuf.h \
    /usr/include/c++/15/bits/stl_uninitialized.h \
    /usr/include/c++/15/bits/stl_vector.h \
    /usr/include/c++/15/bits/streambuf.tcc \
    /usr/include/c++/15/bits/streambuf_iterator.h \
    /usr/include/c++/15/bits/string_view.tcc \
    /usr/include/c++/15/bits/stringfwd.h \
    /usr/include/c++/15/bits/uniform_int_dist.h \
    /usr/include/c++/15/bits/unique_ptr.h \
    /usr/include/c++/15/bits/unordered_map.h \
    /usr/include/c++/15/bits/uses_allocator.h \
    /usr/include/c++/15/bits/uses_allocator_args.h \
    /usr/include/c++/15/bits/utility.h \
    /usr/include/c++/15/bits/vector.tcc \
    /usr/include/c++/15/bits/version.h \
    /usr/include/c++/15/cerrno \
    /usr/include/c++/15/climits \
    /usr/include/c++/15/clocale \
    /usr/include/c++/15/cmath \
    /usr/include/c++/15/concepts \
    /usr/include/c++/15/csetjmp \
    /usr/include/c++/15/cstring \
    /usr/include/c++/15/cwchar \
    /usr/include/c++/15/debug/assertions.h \
    /usr/include/c++/15/debug/debug.h \
    /usr/include/c++/15/exception \
    /usr/include/c++/15/ext/aligned_buffer.h \
    /usr/include/c++/15/ext/alloc_traits.h \
    /usr/include/c++/15/ext/atomicity.h \
    /usr/include/c++/15/ext/concurrence.h \
    /usr/include/c++/15/ext/numeric_traits.h \
    /usr/include/c++/15/ext/string_conversions.h \
    /usr/include/c++/15/ext/type_traits.h \
    /usr/include/c++/15/functional \
    /usr/include/c++/15/initializer_list \
    /usr/include/c++/15/ios \
    /usr/include/c++/15/iterator \
    /usr/include/c++/15/limits \
    /usr/include/c++/15/ostream \
    /usr/include/c++/15/pstl/execution_defs.h \
    /usr/include/c++/15/pstl/glue_algorithm_defs.h \
    /usr/include/c++/15/pstl/glue_memory_defs.h \
    /usr/include/c++/15/pstl/pstl_config.h \
    /usr/include/c++/15/stdexcept \
    /usr/include/c++/15/system_error \
    /usr/include/c++/15/tr1/bessel_function.tcc \
    /usr/include/c++/15/tr1/beta_function.tcc \
    /usr/include/c++/15/tr1/ell_integral.tcc \
    /usr/include/c++/15/tr1/exp_integral.tcc \
    /usr/include/c++/15/tr1/hypergeometric.tcc \
    /usr/include/c++/15/tr1/legendre_function.tcc \
    /usr/include/c++/15/tr1/modified_bessel_func.tcc \
    /usr/include/c++/15/tr1/poly_hermite.tcc \
    /usr/include/c++/15/tr1/poly_laguerre.tcc \
    /usr/include/c++/15/tr1/riemann_zeta.tcc \
    /usr/include/c++/15/tr1/special_function_util.h \
    /usr/include/c++/15/typeinfo \
    /usr/include/c++/15/unordered_map \
    /usr/include/c++/15/utility \
    /usr/include/c++/15/version \
    /usr/include/ctype.h \
    /usr/include/features.h \
    /usr/include/limits.h \
    /usr/include/linux/close_range.h \
    /usr/include/linux/limits.h \
    /usr/include/linux/sched/types.h \
    /usr/include/linux/stddef.h \
    /usr/include/pthread.h \
    /usr/include/wctype.h \
    /usr/include/x86_64-linux-gnu/asm/bitsperlong.h \
    /usr/include/x86_64-linux-gnu/asm/errno.h \
    /usr/include/x86_64-linux-gnu/asm/posix_types.h \
    /usr/include/x86_64-linux-gnu/asm/posix_types_64.h \
    /usr/include/x86_64-linux-gnu/asm/types.h \
    /usr/include/x86_64-linux-gnu/asm/unistd.h \
    /usr/include/x86_64-linux-gnu/asm/unistd_64.h \
    /usr/include/x86_64-linux-gnu/bits/atomic_wide_counter.h \
    /usr/include/x86_64-linux-gnu/bits/byteswap.h \
    /usr/include/x86_64-linux-gnu/bits/confname.h \
    /usr/include/x86_64-linux-gnu/bits/cpu-set.h \
    /usr/include/x86_64-linux-gnu/bits/endian.h \
    /usr/include/x86_64-linux-gnu/bits/endianness.h \
    /usr/include/x86_64-linux-gnu/bits/environments.h \
    /usr/include/x86_64-linux-gnu/bits/errno.h \
    /usr/include/x86_64-linux-gnu/bits/floatn-common.h \
    /usr/include/x86_64-linux-gnu/bits/floatn.h \
    /usr/include/x86_64-linux-gnu/bits/flt-eval-method.h \
    /usr/include/x86_64-linux-gnu/bits/fp-fast.h \
    /usr/include/x86_64-linux-gnu/bits/fp-logb.h \
    /usr/include/x86_64-linux-gnu/bits/getopt_core.h \
    /usr/include/x86_64-linux-gnu/bits/getopt_posix.h \
    /usr/include/x86_64-linux-gnu/bits/iscanonical.h \
    /usr/include/x86_64-linux-gnu/bits/libc-header-start.h \
    /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \
    /usr/include/x86_64-linux-gnu/bits/local_lim.h \
    /usr/include/x86_64-linux-gnu/bits/locale.h \
    /usr/include/x86_64-linux-gnu/bits/long-double.h \
    /usr/include/x86_64-linux-gnu/bits/math-vector.h \
    /usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h \
    /usr/include/x86_64-linux-gnu/bits/mathcalls-macros.h \
    /usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h \
    /usr/include/x86_64-linux-gnu/bits/mathcalls.h \
    /usr/include/x86_64-linux-gnu/bits/posix2_lim.h \
    /usr/include/x86_64-linux-gnu/bits/posix_opt.h \
    /usr/include/x86_64-linux-gnu/bits/pthread_stack_min-dynamic.h \
    /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h \
    /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h \
    /usr/include/x86_64-linux-gnu/bits/sched.h \
    /usr/include/x86_64-linux-gnu/bits/select.h \
    /usr/include/x86_64-linux-gnu/bits/setjmp.h \
    /usr/include/x86_64-linux-gnu/bits/stdint-intn.h \
    /usr/include/x86_64-linux-gnu/bits/stdint-least.h \
    /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h \
    /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \
    /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \
    /usr/include/x86_64-linux-gnu/bits/struct_mutex.h \
    /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h \
    /usr/include/x86_64-linux-gnu/bits/syscall.h \
    /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h \
    /usr/include/x86_64-linux-gnu/bits/time.h \
    /usr/include/x86_64-linux-gnu/bits/time64.h \
    /usr/include/x86_64-linux-gnu/bits/timesize.h \
    /usr/include/x86_64-linux-gnu/bits/timex.h \
    /usr/include/x86_64-linux-gnu/bits/types.h \
    /usr/include/x86_64-linux-gnu/bits/types/FILE.h \
    /usr/include/x86_64-linux-gnu/bits/types/__FILE.h \
    /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/clock_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/error_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/locale_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h \
    /usr/include/x86_64-linux-gnu/bits/types/struct___jmp_buf_tag.h \
    /usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h \
    /usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h \
    /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h \
    /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h \
    /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h \
    /usr/include/x86_64-linux-gnu/bits/types/time_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/timer_t.h \
    /usr/include/x86_64-linux-gnu/bits/types/wint_t.h \
    /usr/include/x86_64-linux-gnu/bits/typesizes.h \
    /usr/include/x86_64-linux-gnu/bits/uintn-identity.h \
    /usr/include/x86_64-linux-gnu/bits/uio_lim.h \
    /usr/include/x86_64-linux-gnu/bits/unistd_ext.h \
    /usr/include/x86_64-linux-gnu/bits/waitflags.h \
    /usr/include/x86_64-linux-gnu/bits/waitstatus.h \
    /usr/include/x86_64-linux-gnu/bits/wchar.h \
    /usr/include/x86_64-linux-gnu/bits/wordsize.h \
    /usr/include/x86_64-linux-gnu/bits/xopen_lim.h \
    /usr/include/x86_64-linux-gnu/c++/15/bits/atomic_word.h \
    /usr/include/x86_64-linux-gnu/c++/15/bits/c++allocator.h \
    /usr/include/x86_64-linux-gnu/c++/15/bits/c++config.h \
    /usr/include/x86_64-linux-gnu/c++/15/bits/c++locale.h \
    /usr/include/x86_64-linux-gnu/c++/15/bits/cpu_defines.h \
    /usr/include/x86_64-linux-gnu/c++/15/bits/ctype_base.h \
    /usr/include/x86_64-linux-gnu/c++/15/bits/ctype_inline.h \
    /usr/include/x86_64-linux-gnu/c++/15/bits/error_constants.h \
    /usr/include/x86_64-linux-gnu/c++/15/bits/gthr-default.h \
    /usr/include/x86_64-linux-gnu/c++/15/bits/gthr.h \
    /usr/include/x86_64-linux-gnu/c++/15/bits/os_defines.h \
    /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \
    /usr/include/x86_64-linux-gnu/gnu/stubs.h \
    /usr/include/x86_64-linux-gnu/sys/cdefs.h \
    /usr/include/x86_64-linux-gnu/sys/select.h \
    /usr/include/x86_64-linux-gnu/sys/single_threaded.h \
    /usr/include/x86_64-linux-gnu/sys/syscall.h \
    /usr/include/x86_64-linux-gnu/sys/types.h \
    /usr/lib/gcc/x86_64-linux-gnu/15/include/float.h \
    /usr/lib/gcc/x86_64-linux-gnu/15/include/limits.h \
    /usr/lib/gcc/x86_64-linux-gnu/15/include/stdarg.h \
    /usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h \
    /usr/lib/gcc/x86_64-linux-gnu/15/include/stdint.h \
    /usr/lib/gcc/x86_64-linux-gnu/15/include/syslimits.h \
    lists 288 lines such as /home/runner/work/_temp/Library/cpp11/include/cpp11/R.hpp and /opt/R/4.6.2/lib/R/include/..., and drops pch.h, affinity.h and .Rconfig. R CMD INSTALL of 383a042 stops with "No rule to make target '/home/runner/work/_temp/Library/cpp11/include/cpp11/R.hpp', needed by 'SqliteArrowColumn.o'" (Confirmed). The lines start with one space, which the filter in src/Makevars.deps (/^ ([/]|...)/D, two spaces) does not remove. Not one of the reviewed commits, but merging the branch as it stands breaks installation from source; this happened before (893c1f4).
    Suggested fix: restore src/SqliteArrowColumn.dd from 06df15e as 893c1f4 did, keeping the reformatting of stop_too_long(), and make the filter match any leading whitespace (/^ +([/]|[A-Za-z]:[/\\]|vendor|[.][.])/D) in a separate pull request.

Medium

None.

Low

  1. The description lists the jobs that run the 2.5 GB test but omits R-CMD-check-dev.yaml.

    - name: Run the repository-specific after-install steps
    uses: ./.github/workflows/custom/after-install
    if: hashFiles('.github/workflows/custom/after-install/action.yml') != ''
    and L165-L167 call the hook too, so the daily rcc dev base job and each job per dev dependency also run it (by reading). Harmless on ubuntu-26.04, but the cost the description asks reviewers to weigh is larger than stated.
    Suggested fix: name rcc dev in the description and in the comment of the hook step.

  2. A blob converted to text by dbColumnInfo() or a data-frame fetch before the first Arrow chunk of an execution is still taken for text, without a conversion warning.

    void SqliteResultImpl::read_ahead() {
    try {
    while (step_run())
    ;
    } catch (const step_error& e) {
    error_kept_ = true;
    kept_error_ = e.what();
    kept_error_code_ = e.code();
    return;
    }
    if (complete_ || arrow_columns_.empty()) {
    return;
    }
    for (size_t j = 0; j < arrow_columns_.size(); ++j) {
    arrow_columns_[j].read_type();
    }
    arrow_row_read_ = true;
    }
    reads storage classes only when arrow_columns_ exist. The description states this limitation and it is unchanged from feat: Report values converted to an Arrow column's type once per chunk, with their rows #862 (by reading).
    Suggested fix: none needed here; if wanted later, have peek_first_row() and the data-frame path record the storage classes of the current row before converting, for the first Arrow chunk to use.

  3. result_set_arrow_max_bytes() truncates a fractional limit silently.

    RSQLite/src/result.cpp

    Lines 103 to 109 in 06df15e

    [[cpp11::register]]
    void result_set_arrow_max_bytes(SqliteResult* res, double max_bytes) {
    if (!(max_bytes >= 0 && max_bytes <= INT32_MAX)) {
    cpp11::stop("`max_bytes` must be between 0 and 2^31 - 1.");
    }
    res->set_arrow_max_bytes(static_cast<int64_t>(max_bytes));
    }
    accepts 1.5 as 1 (Confirmed). Internal and test-only.
    Suggested fix: also require max_bytes == floor(max_bytes), or leave as is.


Generated by Claude Code

`result_set_arrow_max_bytes()` cast its limit to an integer,
so 1.5 silently became 1.
It now stops unless the limit is a whole number of bytes in range.
Also the comment of the CI step that enables the large Arrow test
now names both workflows that call the hook,
`R-CMD-check.yaml` and the daily `rcc dev` jobs of `R-CMD-check-dev.yaml`.

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

krlmlr commented Nov 12, 2026 •

Copy link
Copy Markdown
Member Author

Superseded: Accepted limitations

Superseded by the new copy.

The clean review of 06df15e found nothing above Low in the commits of this pull request: chunks end exactly at the limit, also with empty values and NULL; a held-back row keeps its types and values through dbFetch(), dbColumnInfo() and mixed fetches; the interactions with the read-ahead row (#850), kept step errors (#830), kept chunks (#862) and dbBind() hold, also in a UTF-16 database; valgrind found nothing; and the hot path shows no measurable cost. Its High concerned CI's auto-update commit 383a042 after the reviewed head, which filled src/*.dd with absolute paths and broke installation from source; f61447c restores those files to the reviewed state, and #853 fixes the cause. Two Lows are answered in 975e379: the CI hook's comment names the daily rcc dev jobs, which also run the 2.5 GB test, and result_set_arrow_max_bytes() refuses a fractional limit. These remain:


Generated by Claude Code

krlmlr and others added 2 commits November 12, 2026 21:15
The CI's auto-update regenerated `src/result.dd` and `src/cpp11.dd` with GCC,
whose dependency output indents continuation lines by one space,
which the filter in `src/Makevars.deps` does not drop,
so the files gained hundreds of absolute and vendored paths (#836).
This restores them as they were at 975e379
and keeps the auto-update's formatting of `src/result.cpp`.

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

krlmlr commented Nov 13, 2026 •

Copy link
Copy Markdown
Member Author

Question: should fewer CI jobs run the Arrow test with blobs near 2 GiB?

The new CI hook sets RSQLITE_TEST_LARGE_ARROW=true where it is unset (.github/workflows/custom/after-install/action.yml#L15-L26), so every hosted job that calls it runs the test, which needs about 2.5 GB of memory and a few seconds: rcc-smoke with its coverage run, every entry of the rcc-full and rcc-suggests matrices, and the daily rcc dev jobs. All these runners are 64-bit with at least 7 GB. R-hub's containers, CRAN and users skip it.

  • Keep the hook as it is, for the coverage on every platform (recommended)
  • Set the variable only in rcc-smoke, so that one job per push runs the test
  • Drop the hook, so that the test runs only where someone sets the variable

Kirill decides. If nobody decides, every hosted job that calls the hook runs the test.


Generated by Claude Code

krlmlr commented Nov 13, 2026 •

Copy link
Copy Markdown
Member Author

Superseded: Accepted limitations

Superseded by the copy of 2026-11-29.

The clean review of 06df15e found nothing above Low in the commits of this pull request: chunks end exactly at the limit, also with empty values and NULL; a held-back row keeps its types and values through dbFetch(), dbColumnInfo() and mixed fetches; the interactions with the read-ahead row (#850), kept step errors (#830), kept chunks (#862) and dbBind() hold, also in a UTF-16 database; valgrind found nothing; and the hot path shows no measurable cost. Its High concerned CI's auto-update commit 383a042 after the reviewed head, which filled src/*.dd with absolute paths and broke installation from source; f61447c restores those files to the reviewed state. Two Lows are answered in 975e379: the CI hook's comment names the daily rcc dev jobs, which also run the 2.5 GB test, and result_set_arrow_max_bytes() refuses a fractional limit. This copy replaces the previous one: the limitation links its question, the blob converted before the first chunk moves to #862, whose branch shows it too, and the note on src/*.dd is dropped, since #853 is merged and this branch includes it. This remains:

Found here, but on the base too:


Generated by Claude Code

An Arrow chunk full by its rows reads ahead,
and the step past its last row binds the next parameter set.
When SQLite refuses a value of that set,
the error is kept for the next chunk,
which raises it once and completes the result;
the rows of both chunks before it count, and a new dbBind() goes on.

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

krlmlr commented Nov 29, 2026

Copy link
Copy Markdown
Member Author

Question: should a blob in the row held for the next Arrow chunk survive a dbColumnInfo() in a UTF-16 database?

The clean review of 2026-11-29 rated this Low. The row that a chunk reads ahead, or holds back for the byte limit, keeps its storage classes for the next chunk (src/SqliteResultImpl.cpp#L634-L638), so that a call in between, such as dbColumnInfo(), does not change how that row is typed. In a UTF-16 database, though, dbColumnInfo() reads such a blob as text, and SQLite converts the value's bytes in place; the next chunk then reads the converted bytes with sqlite3_column_blob() (src/SqliteArrowColumn.cpp#L479-L480) and gets another value. Run in this session with devtools::load_all() at 724c9fb:

library(DBI)
con <- dbConnect(RSQLite::SQLite())
dbExecute(con, "PRAGMA encoding = 'UTF-16le'")
dbExecute(con, "CREATE TABLE t (i INTEGER, s)")
dbExecute(con, "INSERT INTO t VALUES (1, 'a'), (2, 'b'), (3, x'61006200')")
res <- dbSendQuery(con, "SELECT s FROM t ORDER BY i")
dbFetch(res, 1)
RSQLite:::result_fetch_arrow_chunk(res@ptr, 1L)
dbColumnInfo(res)
ch <- RSQLite:::result_fetch_arrow_chunk(res@ptr, 1L)
#> Without the dbColumnInfo() call: NULL, reported as "1 blob value not valid UTF-8 or with a NUL byte, NULL instead (row 3)"
#> With it: "ab", reported as "1 blob value converted (row 3)"

Keeping a copy of a blob in the held row costs a copy of up to one value per blob column of that row, only while the row waits, and a test; reading the row's blob before any other call can touch it would need the blob read at the end of the chunk instead. A UTF-16 database combined with a dbColumnInfo() between chunks of a column that mixes text and blobs is rare, and the value is reported either way.

Kirill decides. If nobody decides, it is accepted as a limitation of this pull request.


Generated by Claude Code

krlmlr commented Nov 29, 2026

Copy link
Copy Markdown
Member Author

Accepted limitations

The clean review of 06df15e found nothing above Low in the commits of this pull request: chunks end exactly at the limit, also with empty values and NULL; a held-back row keeps its types and values through dbFetch(), dbColumnInfo() and mixed fetches; the interactions with the read-ahead row (#850), kept step errors (#830), kept chunks (#862) and dbBind() hold, also in a UTF-16 database; valgrind found nothing; and the hot path shows no measurable cost. Its High concerned CI's auto-update commit 383a042 after the reviewed head, which filled src/*.dd with absolute paths and broke installation from source; f61447c restores those files to the reviewed state. Two Lows are answered in 975e379: the CI hook's comment names the daily rcc dev jobs, which also run the 2.5 GB test, and result_set_arrow_max_bytes() refuses a fractional limit. This copy replaces the previous one: the limitation links its question, the blob converted before the first chunk moves to #862, whose branch shows it too, and the note on src/*.dd is dropped, since #853 is merged and this branch includes it. This remains:

The clean review of 2026-11-29, after main (3.54.1) was merged up the stack, read this pull request at 724c9fb and found nothing above Low here; one new Low is listed below. From #830 up, five expectations in test-dbBind.R from #868 fail until the question on the state after a failed dbBind() is answered. This copy replaces the copy of 2026-11-13.

Found here, but on the base too:


Generated by Claude Code

A result fetched as Arrow arrays refuses data frame fetches,
so the tests that interleaved them now fix the data frame types with `dbColumnInfo()`,
and the test of a row held back checks only that `dbBind()` starts anew.
`dbColumnInfo()` and `dbFetch()` of no rows still read the current row as a data frame,
which is why the storage classes are still read ahead for the next Arrow chunk.

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

This branch has not been deployed

No deployments
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