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

Panic when setting return type to arrow #462

Open
david-waterworth opened this issue Mar 7, 2023 · 0 comments
Open

Panic when setting return type to arrow #462

david-waterworth opened this issue Mar 7, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@david-waterworth
Copy link

What language are you using?

Python

What version are you using?

0.3.1

What database are you using?

PostgreSQL

The docstring for read_sql says the supported values for return_type are "arrow", "pandas", "modin", "dask" or "polars", but if I use anything other than "arrow2" or "pandas" I get the error

thread '' panicked at 'not implemented', /__w/connector-x/connector-x/connectorx/src/destinations/arrow/arrow_assoc.rs:170:9

File .venv/lib/python3.10/site-packages/connectorx/init.py:257, in read_sql(conn, query, return_type, protocol, partition_on, partition_range, partition_num, index_col)
254 except ModuleNotFoundError:
255 raise ValueError("You need to install pyarrow first")
--> 257 result = _read_sql(
258 conn,
259 "arrow" if return_type in {"arrow", "polars"} else "arrow2",
260 queries=queries,
261 protocol=protocol,
262 partition_query=partition_query,
263 )
264 df = reconstruct_arrow(result)
265 if return_type in {"polars", "polars2"}:

PanicException: not implemented

@david-waterworth david-waterworth added the bug Something isn't working label Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant