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

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

Closed
pandada8 opened this issue Aug 9, 2023 · 3 comments · Fixed by #83
Assignees
Labels
bug Something isn't working

Comments

@pandada8
Copy link

pandada8 commented Aug 9, 2023

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.

@lmangani
Copy link
Contributor

lmangani commented Aug 9, 2023

Hello @pandada8 thanks for your report. Could you confirm your OS, Python & chdb version/architecture?

@lmangani lmangani added the bug Something isn't working label Aug 9, 2023
@auxten auxten self-assigned this Aug 9, 2023
@auxten auxten closed this as completed in #83 Aug 9, 2023
@lmangani
Copy link
Contributor

Works in colab with 0.11.5 🎉

image

@auxten
Copy link
Member

auxten commented Aug 25, 2023

Todo: Support use db_xxx in chdb session.

@auxten auxten reopened this Aug 25, 2023
@auxten auxten added the good first issue Good for newcomers label Aug 25, 2023
@auxten auxten closed this as completed Aug 25, 2023
@auxten auxten removed the good first issue Good for newcomers label Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants