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

Deprecate sliced_string_cast in favor of library utils #254

Open
rkenmi opened this issue Dec 1, 2023 · 0 comments
Open

Deprecate sliced_string_cast in favor of library utils #254

rkenmi opened this issue Dec 1, 2023 · 0 comments

Comments

@rkenmi
Copy link
Member

rkenmi commented Dec 1, 2023

def sliced_string_cast(array: pa.ChunkedArray) -> pa.ChunkedArray:
"""performs slicing of a pyarrow array prior casting to a string.
This prevents a pyarrow from allocating too large of an array causing a failure.
Issue: apache/arrow#38835
TODO: deprecate this function when pyarrow performs proper ChunkedArray -> ChunkedArray casting
"""

  1. Should we use pyarrow.large_string() to cast large columns > 2GB?
  2. Contribute to pyarrow or wait for a more general solution to re-use here?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant