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

Pyarrow: convert from DataType(string_view) to DataType(string) #44540

Closed
kevinli1993 opened this issue Oct 26, 2024 · 2 comments
Closed

Pyarrow: convert from DataType(string_view) to DataType(string) #44540

kevinli1993 opened this issue Oct 26, 2024 · 2 comments
Labels
Component: Python Type: usage Issue is a user question

Comments

@kevinli1993
Copy link

Describe the usage question you have. Please include as many useful details as possible.

Hi, is there a way to cast a string_view array into a string array in Pyarrow?

I find that the string type is better supported, e.g. pc.count_distinct() works on a string array, but not a string_view array. It is also easier to interface with other libraries, since the string type is better supported in older versions.

Component(s)

Python

@kevinli1993 kevinli1993 added the Type: usage Issue is a user question label Oct 26, 2024
@AlenkaF
Copy link
Member

AlenkaF commented Oct 28, 2024

Hi @kevinli1993, thank you for opening an issue!
There is an open issue that tracks progress of adding basic functionality to the new string view type (first in C++): #39634.

I suggest we follow the status of the linked issue and close this one.

@kevinli1993
Copy link
Author

That's perfect, thank you @AlenkaF for the pointer!

@kevinli1993 kevinli1993 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Python Type: usage Issue is a user question
Projects
None yet
Development

No branches or pull requests

2 participants