Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R] Invalid buffer for empty characters with null data #19996

Closed
asfimport opened this issue Nov 3, 2018 · 1 comment
Closed

[R] Invalid buffer for empty characters with null data #19996

asfimport opened this issue Nov 3, 2018 · 1 comment

Comments

@asfimport
Copy link

I'm hitting this from data coming from Spark while retrieving this data frame:

 

 

<database>   <name>    <temp>
default      a         TRUE
             b         TRUE

 

Error:

error: Failed to fetch data: invalid data in buffer 2

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:

 

<database>   <name>    <temp>
             b         TRUE

 

Where the data array is NULL and the offsets 0s for the columns.

Here is a snapshot while debugging StringArray_to_Vector:

Screen Shot 2018-11-02 at 10.27.11 PM.png

Reporter: Javier Luraschi / @javierluraschi
Assignee: Romain Francois / @romainfrancois

Original Issue Attachments:

PRs and other links:

Note: This issue was originally created as ARROW-3693. Please see the migration documentation for further details.

@asfimport
Copy link
Author

Wes McKinney / @wesm:
Issue resolved by pull request 2910
#2910

@asfimport asfimport added this to the 0.12.0 milestone Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants