Skip to content

Creating table silently failed in default database #318

@JakkuSakura

Description

@JakkuSakura

Describe what's wrong
I tried to create a table in default database, and it fails without explicit error.
If I create table in non-default databases, it works as expected.

JakkuSakura/chdb-rust@2715433

Does it reproduce on the most recent release?
I'm using chdb v2.1.1

How to reproduce

  1. git clone https://github.com/JakkuSakura/chdb-rust
  2. git switch -d 271543383827da3ed42e4ae883c9d767d5f379f6
  3. ./update_libchdb.sh --local
  4. cargo test

I didn't test other chdb clients, but here's the SQL that is falling

CREATE TABLE logs (id UInt64, msg String) ENGINE = MergeTree() ORDER BY id;
INSERT INTO logs (id, msg) VALUES (1, 'test');

Message

Error: QueryError("Code: 60. DB::Exception: Table default.logs does not exist. (UNKNOWN_TABLE)")

If I add:

CREATE DATABASE demo; USE demo

Then it's working

Metadata

Metadata

Assignees

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