mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
test
This commit is contained in:
parent
c630d9457b
commit
c5087219c4
@ -0,0 +1,11 @@
|
||||
testlazy log Log 0 ['/var/lib/clickhouse/data/testlazy/log/'] /var/lib/clickhouse/metadata/testlazy/log.sql 0000-00-00 00:00:00 [] [] CREATE TABLE testlazy.log (`a` UInt64, `b` UInt64) ENGINE = Log Log
|
||||
testlazy slog StripeLog 0 ['/var/lib/clickhouse/data/testlazy/slog/'] /var/lib/clickhouse/metadata/testlazy/slog.sql 0000-00-00 00:00:00 [] [] CREATE TABLE testlazy.slog (`a` UInt64, `b` UInt64) ENGINE = StripeLog StripeLog
|
||||
testlazy tlog TinyLog 0 ['/var/lib/clickhouse/data/testlazy/tlog/'] /var/lib/clickhouse/metadata/testlazy/tlog.sql 0000-00-00 00:00:00 [] [] CREATE TABLE testlazy.tlog (`a` UInt64, `b` UInt64) ENGINE = TinyLog TinyLog
|
||||
testlazy log 0000-00-00 00:00:00
|
||||
testlazy slog 0000-00-00 00:00:00
|
||||
testlazy tlog 0000-00-00 00:00:00
|
||||
1 1
|
||||
2 2
|
||||
3 3
|
||||
2 2
|
||||
3 3
|
22
dbms/tests/queries/0_stateless/01014_lazy_database_basic.sql
Executable file
22
dbms/tests/queries/0_stateless/01014_lazy_database_basic.sql
Executable file
@ -0,0 +1,22 @@
|
||||
CREATE DATABASE testlazy ENGINE = Lazy(30);
|
||||
CREATE TABLE testlazy.log (a UInt64, b UInt64) ENGINE = Log;
|
||||
CREATE TABLE testlazy.slog (a UInt64, b UInt64) ENGINE = StripeLog;
|
||||
CREATE TABLE testlazy.tlog (a UInt64, b UInt64) ENGINE = TinyLog;
|
||||
|
||||
SELECT * FROM system.tables WHERE database = 'testlazy';
|
||||
SELECT database, name, metadata_modification_time FROM system.tables WHERE database = 'testlazy';
|
||||
|
||||
INSERT INTO testlazy.log VALUES (1, 1);
|
||||
INSERT INTO testlazy.slog VALUES (2, 2);
|
||||
INSERT INTO testlazy.tlog VALUES (3, 3);
|
||||
SELECT * FROM testlazy.log;
|
||||
SELECT * FROM testlazy.slog;
|
||||
SELECT * FROM testlazy.tlog;
|
||||
|
||||
|
||||
DROP TABLE testlazy.log;
|
||||
|
||||
SELECT * FROM testlazy.slog;
|
||||
SELECT * FROM testlazy.tlog;
|
||||
|
||||
DROP DATABASE testlazy;
|
Loading…
Reference in New Issue
Block a user