-
Notifications
You must be signed in to change notification settings - Fork 608
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: Failed to load Postgres table containing ENUM #9295
Comments
@hazirliver Thanks for the report, looks like a bug! |
How do we want to approach this? All we have at parse time is (I think) the string of the datatype name, which in this case is "dataset_source_enum" Do we want to have a naming convention around custom types? Or should we just fallback to treating things as strings if we (and sqlglot) can't recognize it? |
Naturally, this is possible with a bit of elbow grease, and it's a bit annoying:
|
This was probably resolved by #9576 if you'd like to test it out @hazirliver |
This doesn't work yet, because our custom PR inbound. |
What happened?
I encountered an issue when attempting to load a PostgreSQL table
dataset_source
that contains a custom ENUM data typedataset_source_enum
. The error occurs both when usingcon.table('dataset_source')
andcon.sql("SELECT * FROM dataset_source;")
.Steps to reproduce:
Error message is provided in
Relevant log output
sectionWhat version of ibis are you using?
9.0.0
What backend(s) are you using, if any?
PostgeSQL
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: