ClickHouse/tests/queries/0_stateless/01494_storage_join_persistency.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
751 B
MySQL
Raw Normal View History

2021-09-12 12:35:27 +00:00
-- Tags: no-parallel
2020-09-15 09:16:48 +00:00
DROP TABLE IF EXISTS join;
SELECT '----- Default Settings -----';
CREATE TABLE join (k UInt64, s String) ENGINE = Join(ANY, LEFT, k);
INSERT INTO join VALUES (1,21);
DETACH TABLE join;
ATTACH TABLE join;
SELECT * from join;
DROP TABLE join;
2020-09-18 12:58:27 +00:00
SELECT '----- Settings persistent=1 -----';
CREATE TABLE join (k UInt64, s String) ENGINE = Join(ANY, LEFT, k) SETTINGS persistent=1;
INSERT INTO join VALUES (1,21);
DETACH TABLE join;
ATTACH TABLE join;
SELECT * from join;
DROP TABLE join;
2020-09-15 09:16:48 +00:00
2020-09-18 12:58:27 +00:00
SELECT '----- Settings persistent=0 -----';
CREATE TABLE join (k UInt64, s String) ENGINE = Join(ANY, LEFT, k) SETTINGS persistent=0;
INSERT INTO join VALUES (1,21);
2020-09-15 09:16:48 +00:00
DETACH TABLE join;
ATTACH TABLE join;
SELECT * from join;
2020-09-15 09:16:48 +00:00
DROP TABLE join;