-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Cannot create polars series from LargeBinary type #1805
Comments
Polars does not support the binary data type. Maybe you can convert to type |
I'm not sure. Maybe @wangxiaoying can help out if this might be possible in connectorx? |
No, this is not related to connectorx. We could do the conversion in polars as well. I will take a look. |
@ritchie46 That would be great. Just a remark if you need to use the steps to reproduce above. Version |
Are you using Python or Rust?
Rust
Which feature gates did you use?
None
What version of polars are you using?
polars = "0.16"
andpolars-core = "0.16"
What operating system are you using polars on?
Ubuntu
Describe your bug.
If you are querying bytea data from a postgres database, the following error occurs in polars:
What are the steps to reproduce the behavior?
Using
connectorx = { version = "0.2.2-alpha.5", features = ["src_postgres", "dst_arrow2"] }
,polars-core = "0.16"
,postgres = "0.19.2"
, andurl = "2.2.2"
, you can reproduce as follows:where
url = Url::parse("postgresql:https://db_user:db_password@db_host:db_port/db_name")
and thequery
should query data which includes bytea type in postgres.What is the actual behavior?
The error output is
What is the expected behavior?
Bytea
type in postgres converts toLargeBinary
type in arrow2. However,LargeBinary
type is missing in polars.If you need anything else or I can assist, please let me know.
Linking downstream issues for completeness: sfu-db/connector-x#148 and quambene/pigeon-rs#1.
The text was updated successfully, but these errors were encountered: