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

Unsupported Postgres domain type #514

Open
2 tasks done
Leo-XM-Zeng opened this issue Jan 2, 2025 · 0 comments
Open
2 tasks done

Unsupported Postgres domain type #514

Leo-XM-Zeng opened this issue Jan 2, 2025 · 0 comments
Labels
types Issues related to type conversions

Comments

@Leo-XM-Zeng
Copy link
Contributor

Leo-XM-Zeng commented Jan 2, 2025

What happens?

postgres=# create table basictest
postgres-#            ( testint4 domainint4
postgres(#            , testtext domaintext
postgres(#            , testvarchar domainvarchar
postgres(#            , testnumeric domainnumeric
postgres(#            );
CREATE TABLE
postgres=# 
postgres=# INSERT INTO basictest values ('88', 'haha', 'short', '123.12');
INSERT 0 1
postgres=# select * from basictest;
2025-01-01 23:09:25.190 CST [1116620] WARNING:  01000: (PGDuckDB/GetPostgresDuckDBType) Could not convert DuckDB type: "UnsupportedPostgresType (Oid=245756)" to Postgres type
2025-01-01 23:09:25.190 CST [1116620] LOCATION:  GetPostgresDuckDBType, pgduckdb_types.cpp:978
2025-01-01 23:09:25.191 CST [1116620] WARNING:  01000: (PGDuckDB/CreatePlan) Cache lookup failed for type 0
2025-01-01 23:09:25.191 CST [1116620] LOCATION:  CreatePlan, pgduckdb_planner.cpp:77
WARNING:  (PGDuckDB/GetPostgresDuckDBType) Could not convert DuckDB type: "UnsupportedPostgresType (Oid=245756)" to Postgres type
WARNING:  (PGDuckDB/Create

0684922141d04a47b6a0ab3c500eb511_compress

To Reproduce

create domain domainvarchar varchar(5);
create domain domainnumeric numeric(8,2);
create domain domainint4 int4;
create domain domaintext text;

-- Test tables using domains
create table basictest
           ( testint4 domainint4
           , testtext domaintext
           , testvarchar domainvarchar
           , testnumeric domainnumeric
           );

INSERT INTO basictest values ('88', 'haha', 'short'); 
select * from basictest;

OS:

centos8

pg_duckdb Version (if built from source use commit hash):

main

Postgres Version (if built from source use commit hash):

16.6

Hardware:

No response

Full Name:

Man Zeng

Affiliation:

Halo

What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.

I have not tested with any build

Did you include all relevant data sets for reproducing the issue?

Yes

Did you include all code required to reproduce the issue?

  • Yes, I have

Did you include all relevant configuration (e.g., CPU architecture, Linux distribution) to reproduce the issue?

  • Yes, I have
@JelteF JelteF added the types Issues related to type conversions label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
types Issues related to type conversions
Projects
None yet
Development

No branches or pull requests

2 participants