Skip to content

Scan na#188

Merged
sebffischer merged 2 commits into
mainfrom
scan-na
May 5, 2026
Merged

Scan na#188
sebffischer merged 2 commits into
mainfrom
scan-na

Conversation

@sebffischer
Copy link
Copy Markdown
Collaborator

No description provided.

sebffischer and others added 2 commits May 5, 2026 09:20
Opt-in safety check for the NA / sentinel collision between R and XLA.
On host → device transfers (`pjrt_buffer()`, `pjrt_scalar()` for logical,
integer, numeric), `scan_na = TRUE` errors if the input contains any NA,
since XLA has no missing-value representation. On device → host
(`as_array.PJRTBuffer`), `scan_na = TRUE` only triggers for `i32` and
flags any materialized `NA_integer_` (the irrecoverable
`-2147483648` ↔ `NA_integer_` collision). Default remains `FALSE`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@sebffischer sebffischer merged commit 1ddefba into main May 5, 2026
12 of 13 checks passed
@sebffischer sebffischer deleted the scan-na branch May 5, 2026 10:18
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.

1 participant