nealrichardson commented on issue #43662:
URL: https://github.com/apache/arrow/issues/43662#issuecomment-2286424271
Looks like you have to check that `replacement` is a scalar string but then
`coalesce()` does the job.
```
arrow_table(x = c("a", NA, NA, NA, "b")) |>
mutate(x = coalesce(x, "Missing data")) |>
collect()
# A tibble: 5 × 1
x
<chr>
1 a
2 Missing data
3 Missing data
4 Missing data
5 b
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]