Skip to content

Clickhouse: Table schema.ibis_clickhouse_metadata_randomcode doesn't exist. (UNKNOWN_TABLE) #1596

@rara011088

Description

@rara011088

I am trying to connect WrenAI to Clickhouse, but I got the error:
[ERROR] DataSourceResolver - Failed to get project tables
"message": Code: 60. DB:: Exception: Table schema.ibis_clickhouse_metadata_randomcode doesn't exist. (UNKOWN_TABLE)

The error happens in WrenAI/wren-ui/src/apollo/server/adaptors/ibisAdaptor.ts
where it calls the API /v2/connector/{data_source}/metadata/tables

In my Clickhouse database I get different results when I run show tables. This is related to replicated Clickhouse clusters

And the table it is trying to find (schema.ibis_clickhouse_metadata_randomcode) is in one of the nodes.

How can I modify the code so that it can create the metadata tables on cluster 'default'?
I couldn't find the part where it has CREATE TABLE statement

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