> is.nan(NA_real_)
[1] FALSE
> as.vector(is.nan(Scalar$create(NA_real_)))
[1] NA
There is a discrepancy here between the FALSE result in R and the null result in Arrow (which results in NA_logical_ when converted to an R vector).
I don't think the is_nan C++ kernel should change here because this is just a quirk of R. For example, NumPy and pandas is consistent with the Arrow C++:
We could maybe consider adding a boolean option to the is_nan C++ kernel to control whether to consider nulls as NaN.
Reporter: Ian Cook / @ianmcook
Assignee: Ian Cook / @ianmcook
Related issues:
Note: This issue was originally created as ARROW-12850. Please see the migration documentation for further details.
There is a discrepancy here between the
FALSEresult in R and thenullresult in Arrow (which results inNA_logical_when converted to an R vector).I don't think the
is_nanC++ kernel should change here because this is just a quirk of R. For example, NumPy and pandas is consistent with the Arrow C++:We could maybe consider adding a boolean option to the
is_nanC++ kernel to control whether to consider nulls asNaN.Reporter: Ian Cook / @ianmcook
Assignee: Ian Cook / @ianmcook
Related issues:
Note: This issue was originally created as ARROW-12850. Please see the migration documentation for further details.