[
https://issues.apache.org/jira/browse/ARROW-3693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17660716#comment-17660716
]
Rok Mihevc commented on ARROW-3693:
-----------------------------------
This issue has been migrated to [issue
#19996|https://github.com/apache/arrow/issues/19996] on GitHub. Please see the
[migration documentation|https://github.com/apache/arrow/issues/14542] for
further details.
> [R] Invalid buffer for empty characters with null data
> ------------------------------------------------------
>
> Key: ARROW-3693
> URL: https://issues.apache.org/jira/browse/ARROW-3693
> Project: Apache Arrow
> Issue Type: Improvement
> Components: R
> Reporter: Javier Luraschi
> Assignee: Romain Francois
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.12.0
>
> Attachments: Screen Shot 2018-11-02 at 10.27.11 PM.png
>
> Time Spent: 4.5h
> Remaining Estimate: 0h
>
> I'm hitting this from data coming from Spark while retrieving this data frame:
>
>
> {code:java}
> <database> <name> <temp>
> default a TRUE
> b TRUE
> {code}
>
> Error:
> {code:java}
> error: Failed to fetch data: invalid data in buffer 2
> {code}
> The problem is that is possible to have a NULL character array with offsets
> set to 0, notice that in the example above Spark returns two batches, so
> effectively, we are trying to parse:
>
> {code:java}
> <database> <name> <temp>
> b TRUE
> {code}
>
> Where the data array is NULL and the offsets 0s for the <database> columns.
> Here is a snapshot while debugging StringArray_to_Vector:
> !Screen Shot 2018-11-02 at 10.27.11 PM.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)