You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Ian Cook (Jira)" <ji...@apache.org> on 2021/02/23 21:27:00 UTC
[jira] [Commented] (ARROW-11705) [R] Support scalar value recycling
in RecordBatch/Table$create()
[ https://issues.apache.org/jira/browse/ARROW-11705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17289348#comment-17289348 ]
Ian Cook commented on ARROW-11705:
----------------------------------
FYI if you use {{Table$create}} it does not error but gives garbage in the 2nd... Nth rowsÂ
{code:java}
Table$create(a=1:5, b = 42) %>% collect()
# A tibble: 5 x 2
a b
<int> <dbl>
1 1 4.20e+ 1
2 2 6.94e-310
3 3 6.94e-310
4 4 6.94e-310
5 5 6.94e-310 {code}
> [R] Support scalar value recycling in RecordBatch/Table$create()
> ----------------------------------------------------------------
>
> Key: ARROW-11705
> URL: https://issues.apache.org/jira/browse/ARROW-11705
> Project: Apache Arrow
> Issue Type: New Feature
> Components: R
> Reporter: Neal Richardson
> Priority: Major
> Fix For: 4.0.0
>
>
> Compare:
> {code}
> > tibble::tibble(a=1:5, b = 42)
> # A tibble: 5 x 2
> a b
> <int> <dbl>
> 1 1 42
> 2 2 42
> 3 3 42
> 4 4 42
> 5 5 42
> > arrow::record_batch(a=1:5, b = 42)
> Error: Invalid: All arrays must have the same length
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)