Skip to content

[Bug]: error when loading table metadata - pg_collation does not exist #1391

Description

@pavel-v-sobolev

What happened?

I created a duckdb engine with this code:
engine = create_engine('duckdb:///:memory:', poolclass=StaticPool)
Then I call duckdb-engine like this to load a table definition:
table = Table(table_name, self.metadata, autoload_with=engine, schema=schema, extend_existing=True)
I get this error (looks like it tries to read postgres table):
_duckdb.CatalogException: Catalog Error: Table with name pg_collation does not exist!
Did you mean "pg_constraint"?

LINE 6: FROM pg_catalog.pg_collation

DuckDB Engine Version

0.17.0

DuckDB Version

1.4.4

SQLAlchemy Version

2.0.46

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions