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

После вставки в TinyLog таблицу результата выборки, который ничего не вернул - выборка из TinyLog таблицы перестает работать #2563

Closed
nickola opened this issue Jun 26, 2018 · 3 comments
Assignees
Labels
bug Confirmed user-visible misbehaviour in official release

Comments

@nickola
Copy link

nickola commented Jun 26, 2018

Версия ClickHouse: 1.1.54385

Пример:

CREATE TABLE empty (value Int8) ENGINE = TinyLog;
CREATE TABLE data (value Int8) ENGINE = TinyLog;

INSERT INTO data SELECT * FROM empty;
SELECT * FROM data;

Результат:

Received exception from server (version 1.1.54385):
Code: 1000. DB::Exception: Received from 127.0.0.1:9000. DB::Exception: File not found: /var/lib/clickhouse/data/test/data/value.bin.
@filimonov
Copy link
Contributor

filimonov commented Jun 26, 2018

Похоже так происходит только если таблица была изначально пустая.
В качестве workaround для быстрого решения - используйте движок Log. С ним проблема не воспроизводится.

CREATE TABLE data ( value Int8 ) ENGINE = Log;

INSERT INTO data SELECT 1 WHERE 1 = 0;

SELECT count() FROM data 
┌─count()─┐
│       0 │
└─────────┘

@nickola
Copy link
Author

nickola commented Jun 26, 2018

@filimonov Да, как раз переключился на Log в качестве workaround.

@alexey-milovidov alexey-milovidov added the bug Confirmed user-visible misbehaviour in official release label Jul 7, 2018
@alexey-milovidov alexey-milovidov self-assigned this Jul 7, 2018
@alexey-milovidov
Copy link
Member

Исправление в master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed user-visible misbehaviour in official release
Projects
None yet
Development

No branches or pull requests

3 participants