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

[C++] Array::View fails for string/utf8 as binary #22399

Closed
asfimport opened this issue Jul 19, 2019 · 1 comment
Closed

[C++] Array::View fails for string/utf8 as binary #22399

asfimport opened this issue Jul 19, 2019 · 1 comment
Assignees
Milestone

Comments

@asfimport
Copy link

I encountered this

-- Arrow Fatal Error --
Invalid: Can't view array of type string as binary: not enough buffers for view type
In ../src/arrow/array.cc, line 1049, code: CheckInputAvailable()
In ../src/arrow/array.cc, line 1100, code: impl.MakeDataView(out_field, &out_data)

when trying to add a BinaryWithRepeats function to RandomArrayGenerator

  std::shared_ptr<Array> out;
  auto strings = StringWithRepeats(size, unique, min_length, max_length,
                                   null_probability);
  ABORT_NOT_OK(strings->View(binary(), &out));
  return out;

It looks like utf8 <-> binary view simply aren't tested in array-view-test

Reporter: Wes McKinney / @wesm
Assignee: Wes McKinney / @wesm

PRs and other links:

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

@asfimport
Copy link
Author

Francois Saint-Jacques / @fsaintjacques:
Issue resolved by pull request 5125
#5125

@asfimport asfimport added this to the 0.15.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