Skip to content

Unable to create MergeTree Table in a session: Database _temporary_and_external_tables doesn't exist. #82

@pandada8

Description

@pandada8

Creating a MergeTree table results in an error with the message: Code: 81. DB::Exception: Database _temporary_and_external_tables doesn't exist. (UNKNOWN_DATABASE)

How to reproduce

  • modified from readme.md example
    from chdb import session as chs
    
    sess = chs.Session()
    sess.query("CREATE DATABASE IF NOT EXISTS db_xxx ENGINE = Atomic;")
    sess.query("use db_xxx;")
    sess.query("CREATE TABLE IF NOT EXISTS db_xxx.log_table_xxx (x String, y Int) ENGINE = MergeTree ORDER BY x;")
    
    the use db_xxx; line doesn't seem to affect the outcome and consistently generates an error.

Expected behavior
No error message. Table is created.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions