Skip to content

Can't connect - Error: Decimal with a width of 255 is bigger than the maximum supported of 38. #16

@bassamsdata

Description

@bassamsdata

unfortunately, I couldn't connect to any of my postgresql databases through the duckdb scanner due to 2 types of errors.

first one: Decimal with a width of 255 is bigger than the maximum supported of 38.
I tried with both mechanisms, to connect to the database and to connect to just a table.
call postgres_attach('dbname=bassam');
select * from postgres_scan('dbname=bassam', 'public', 'test');
Screen Shot 2022-09-30 at 10 50 55 PM

Screen Shot 2022-09-30 at 10 50 55 PM

the only database that I could able to connect to is the one that having 0 tables.

the second problem: is that the database has not been invalidated!
D select * from postgres_scan('dbname=bassam', 'public', 'untitled_table');
Screen Shot 2022-09-30 at 10 54 14 PM

you can replicate the issue with the this dataset below:
https://github.com/bassamsdata/earthquake_data/blob/main/earthquake.csv

postgresql version: 14.5
duckdb version: 0.5.1
macOS: 12.6

thanks a lot for your efforts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions