Repository navigation
Conversation
`convert_bigint()` wrapped `as.integer()` in `suppressWarnings()`, so BIGINT values outside the 32-bit range silently became `NA`. It now warns once per column, naming the column and suggesting `bigint = "integer64"` or `"numeric"`. The DBItest spec `connect_bigint_integer` expects silent overflow and is skipped. `bigint = "numeric"` is unchanged. Closes #594 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd7atAZVq1J42WzXJpS
Resolved: warn on overflow with
|
|
Keep spec for now. |
|
Closing without merging, per the decision to keep the DBI spec for now (#600 (comment)). Generated by Claude Code |
Addresses #594, pending the question below.
convert_bigint()inR/query.Rnow warns once per column when non-NA integer64 values become NA underbigint = "integer". The message names the column and suggestsbigint = "integer64"or"numeric". The newtests/testthat/test-bigint.Rcovers the warning with NA, and covers in-range and NULL values, which give no warning.Conflict with the DBI specification. The spec says that
bigint = "integer"should "always return asinteger, silently overflow". The DBItest testconnect_bigint_integerchecks exactly that, and it fails with this change. The branch currently lists that test indefault_skipintests/testthat/helper-DBItest.R. That should not stay as is: it silences a spec test to get green. See the question comment for the options. The PR stays a draft until that is decided.Not changed: there is no warning for precision loss with
bigint = "numeric", which the spec also calls silent ("silently round").The full suite passes locally against MariaDB 10.11 with that skip in place.
https://claude.ai/code/session_01Hr1rd7atAZVq1J42WzXJpS
Generated by Claude Code