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

(duckdb.duckdb.CatalogException) Catalog Error: Type with name REGCLASS does not exist! #423

Closed
ZmeiGorynych opened this issue Oct 19, 2024 · 3 comments · Fixed by #429
Closed

Comments

@ZmeiGorynych
Copy link

When running the code below, I get the following error towards the very end:

[SQL: SELECT pg_catalog.pg_class.relname, pg_catalog.pg_description.description 
FROM pg_catalog.pg_class LEFT OUTER JOIN pg_catalog.pg_description ON pg_catalog.pg_class.oid = pg_catalog.pg_description.objoid AND pg_catalog.pg_description.objsubid = $1 AND pg_catalog.pg_description.classoid = CAST($2 AS REGCLASS) JOIN pg_catalog.pg_namespace ON pg_catalog.pg_namespace.oid = pg_catalog.pg_class.relnamespace 
WHERE pg_catalog.pg_class.relkind = ANY (ARRAY[$3, $4, $5, $6, $7]) AND pg_catalog.pg_table_is_visible(pg_catalog.pg_class.oid) AND pg_catalog.pg_namespace.nspname != $8 AND pg_namespace.nspname = $9 AND pg_catalog.pg_class.relname IN ($10)]
[parameters: (0, 'pg_catalog.pg_class', 'r', 'p', 'f', 'v', 'm', 'pg_catalog', 'main', 'channel_members')]

Running on Windows 10, Python 3.11, fresh install of airbyte with pip.
Full console output attached slack-connector-console-output3.txt

import airbyte as ab

source = ab.get_source(
    "source-slack",
    config={
        "api_token": "mytoken",
        "start_date": "2024-10-14T00:00:00Z",
        "lookback_window": 1,
        "join_channels": True,  # Will auto-join all channels the bot has access to
        # "channel_filter": ["test-slack-ingestion"],
    },
    install_if_missing=True,
)
source.check()
source.select_streams(
    [
        "channels",


        "channel_members",
        "channel_messages",
        # "threads",
    ]
)

result = source.read()
@guenp
Copy link
Contributor

guenp commented Oct 21, 2024

As a workaround you can downgrade to sqlalchemy 2.0.35

pip install SQLAlchemy==2.0.35

see also Mause/duckdb_engine#1128

@ZmeiGorynych
Copy link
Author

That fixed it, thanks!

@aaronsteers
Copy link
Contributor

Resolved this morning in v0.19.0. Thanks, @guenp for sending over the PR. 🙏

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 a pull request may close this issue.

3 participants