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

feat: support UUIDs to pyarrow on more backends #8901

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

NickCrews
Copy link
Contributor

@NickCrews NickCrews commented Apr 5, 2024

partially fixes #8902.

Implements UUID execution to pyarrow on some backends, and adds notimpl tests for the rest.

@NickCrews NickCrews force-pushed the uuid-to-pyarrow branch 5 times, most recently from 2d5361f to bb2087d Compare May 11, 2024 04:18
@NickCrews NickCrews changed the title test: add tests for executing UUIDs to pyarrow feat: support UUIDs to pyarrow on more backends May 11, 2024
@NickCrews NickCrews force-pushed the uuid-to-pyarrow branch 3 times, most recently from accada4 to b853a19 Compare May 11, 2024 07:19
cls, column: pa.Array | pd.Series, dtype: dt.DataType
) -> pa.Array:
if isinstance(column, pd.Series):
if dtype.is_uuid():
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love this special casing here. we could do doing something like
target_pd_type = PandasType.from_ibis(PyarrowType.to_ibis(PyarrowType.from_ibis(dtype)))
which would eval to

PandasType.from_ibis(PyarrowType.to_ibis(PyarrowType.from_ibis(dt.UUID)))
PandasType.from_ibis(PyarrowType.to_ibis(pa.string))
PandasType.from_ibis(dt.String)
pd.StringType

but IDK that is a bit of a brainf$#$%k as well.

IDK

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

Successfully merging this pull request may close these issues.

bug: postgres.to_pyarrow(ibis.uuid()) errors
1 participant