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(postgres): add mappings for more esoteric dtypes #9055

Merged
merged 2 commits into from
Apr 25, 2024

Conversation

gforsyth
Copy link
Member

Resolves #8845

Postgres' information_schema has a few custom dtypes that are only used there. Most of them just map to stringlike things, but users should be able to load these tables without issue.

I also added a mapping for the name type, which shows up in some of the default tables in postgis.

This shows up in some of the default postgis tables.  Adding it so that
those tables can be loaded.
Postgres has special datatypes used in their information schema table.
Users should be able to load these tables.

Custom types are listed here: https://www.postgresql.org/docs/current/infoschema-datatypes.html
@gforsyth gforsyth force-pushed the postgres/nametype branch from f57513e to 487c3d3 Compare April 25, 2024 18:42
"name": dt.string,
# information schema dtypes
# defined as nonnegative int
"information_schema.cardinal_number": dt.uint64,
Copy link
Member

Choose a reason for hiding this comment

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

good god

# "domain over type `timestamp with time zone`"
"information_schema.time_stamp": dt.timestamp,
# the pre-bool version of bool kept for backwards compatibility
"information_schema.yes_or_no": dt.string,
Copy link
Member

Choose a reason for hiding this comment

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

pre-bool bool 😒

@cpcloud cpcloud added this to the 9.0 milestone Apr 25, 2024
@cpcloud cpcloud merged commit 5cb83fc into ibis-project:main Apr 25, 2024
82 checks passed
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): cannot parse types from information_schema
2 participants