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

[BUG] pandas string dtype is not recognised by fugue[dask] #415

Closed
rdmolony opened this issue Jan 13, 2023 · 2 comments
Closed

[BUG] pandas string dtype is not recognised by fugue[dask] #415

rdmolony opened this issue Jan 13, 2023 · 2 comments

Comments

@rdmolony
Copy link
Collaborator

Hey team,

You're probably aware of this one, raising in case slipped through the cracks ;)

Minimal Code To Reproduce

from fugue.api import fugue_sql
import pandas as pd

example = pd.Series(["i_break_dask"], name="string_column", dtype="string").to_frame()
fugue_sql("SELECT * FROM example", engine="dask")
# /venv/lib/python3.7/site-packages/pyarrow/types.pxi in pyarrow.lib.from_numpy_dtype()
# TypeError: Cannot interpret 'string[python]' as a data type

Describe the bug
pandas string dtype is not recognised by fugue

Expected behavior
string columns are recognised as fugue string or arrow string

Environment (please complete the following information):

  • Backend: dask | fugue 0.8.0
  • Backend version: 2022.2.0
  • Python version: 3.7.12
  • OS: linux

I don't think string is yet the default behaviour for pandas string columns, if this ever becomes the case then this might become more of an issue

@goodwanghan
Copy link
Collaborator

I investigated, this is a bug. And it will be fixed in triad.

@goodwanghan
Copy link
Collaborator

Please upgrade triad to 0.8.1, it should solve this problem. Thanks for reporting.

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

2 participants