mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
fix more tests
This commit is contained in:
parent
f98d38baaf
commit
7a1d40507a
@ -1,44 +1,44 @@
|
|||||||
EXISTS database_for_dict.t;
|
EXISTS db_01048.t_01048;
|
||||||
EXISTS TABLE database_for_dict.t;
|
EXISTS TABLE db_01048.t_01048;
|
||||||
EXISTS DICTIONARY database_for_dict.t;
|
EXISTS DICTIONARY db_01048.t_01048;
|
||||||
|
|
||||||
DROP DATABASE IF EXISTS database_for_dict;
|
DROP DATABASE IF EXISTS db_01048;
|
||||||
CREATE DATABASE database_for_dict Engine = Ordinary;
|
CREATE DATABASE db_01048 Engine = Ordinary;
|
||||||
|
|
||||||
DROP TABLE IF EXISTS database_for_dict.t;
|
DROP TABLE IF EXISTS db_01048.t_01048;
|
||||||
EXISTS database_for_dict.t;
|
EXISTS db_01048.t_01048;
|
||||||
EXISTS TABLE database_for_dict.t;
|
EXISTS TABLE db_01048.t_01048;
|
||||||
EXISTS DICTIONARY database_for_dict.t;
|
EXISTS DICTIONARY db_01048.t_01048;
|
||||||
|
|
||||||
CREATE TABLE database_for_dict.t (x UInt8) ENGINE = Memory;
|
CREATE TABLE db_01048.t_01048 (x UInt8) ENGINE = Memory;
|
||||||
EXISTS database_for_dict.t;
|
EXISTS db_01048.t_01048;
|
||||||
EXISTS TABLE database_for_dict.t;
|
EXISTS TABLE db_01048.t_01048;
|
||||||
EXISTS DICTIONARY database_for_dict.t;
|
EXISTS DICTIONARY db_01048.t_01048;
|
||||||
|
|
||||||
DROP TABLE database_for_dict.t;
|
DROP TABLE db_01048.t_01048;
|
||||||
EXISTS database_for_dict.t;
|
EXISTS db_01048.t_01048;
|
||||||
EXISTS TABLE database_for_dict.t;
|
EXISTS TABLE db_01048.t_01048;
|
||||||
EXISTS DICTIONARY database_for_dict.t;
|
EXISTS DICTIONARY db_01048.t_01048;
|
||||||
|
|
||||||
DROP DICTIONARY IF EXISTS t;
|
DROP DICTIONARY IF EXISTS t_01048;
|
||||||
CREATE TEMPORARY TABLE t (x UInt8);
|
CREATE TEMPORARY TABLE t_01048 (x UInt8);
|
||||||
EXISTS t; -- Does not work for temporary tables. Maybe have to fix.
|
EXISTS t_01048; -- Does not work for temporary tables. Maybe have to fix.
|
||||||
EXISTS TABLE t;
|
EXISTS TABLE t_01048;
|
||||||
EXISTS DICTIONARY t;
|
EXISTS DICTIONARY t_01048;
|
||||||
|
|
||||||
CREATE DICTIONARY database_for_dict.t (k UInt64, v String) PRIMARY KEY k LAYOUT(FLAT()) SOURCE(HTTP(URL 'http://example.test/' FORMAT TSV)) LIFETIME(1000);
|
CREATE DICTIONARY db_01048.t_01048 (k UInt64, v String) PRIMARY KEY k LAYOUT(FLAT()) SOURCE(HTTP(URL 'http://example.test/' FORMAT TSV)) LIFETIME(1000);
|
||||||
EXISTS database_for_dict.t;
|
EXISTS db_01048.t_01048;
|
||||||
EXISTS TABLE database_for_dict.t; -- Dictionaries are tables as well. But not all tables are dictionaries.
|
EXISTS TABLE db_01048.t_01048; -- Dictionaries are tables as well. But not all tables are dictionaries.
|
||||||
EXISTS DICTIONARY database_for_dict.t;
|
EXISTS DICTIONARY db_01048.t_01048;
|
||||||
|
|
||||||
-- But dictionary-tables cannot be dropped as usual tables.
|
-- But dictionary-tables cannot be dropped as usual tables.
|
||||||
DROP TABLE database_for_dict.t; -- { serverError 60 }
|
DROP TABLE db_01048.t_01048; -- { serverError 60 }
|
||||||
DROP DICTIONARY database_for_dict.t;
|
DROP DICTIONARY db_01048.t_01048;
|
||||||
EXISTS database_for_dict.t;
|
EXISTS db_01048.t_01048;
|
||||||
EXISTS TABLE database_for_dict.t;
|
EXISTS TABLE db_01048.t_01048;
|
||||||
EXISTS DICTIONARY database_for_dict.t;
|
EXISTS DICTIONARY db_01048.t_01048;
|
||||||
|
|
||||||
DROP DATABASE database_for_dict;
|
DROP DATABASE db_01048;
|
||||||
EXISTS database_for_dict.t;
|
EXISTS db_01048.t_01048;
|
||||||
EXISTS TABLE database_for_dict.t;
|
EXISTS TABLE db_01048.t_01048;
|
||||||
EXISTS DICTIONARY database_for_dict.t;
|
EXISTS DICTIONARY db_01048.t_01048;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
CREATE TABLE t (a Int) ENGINE = Log;
|
CREATE TABLE aine (a Int) ENGINE = Log;
|
||||||
ATTACH TABLE t; -- { serverError 57 }
|
ATTACH TABLE aine; -- { serverError 57 }
|
||||||
ATTACH TABLE IF NOT EXISTS t;
|
ATTACH TABLE IF NOT EXISTS anie;
|
||||||
DETACH TABLE t;
|
DETACH TABLE aine;
|
||||||
ATTACH TABLE IF NOT EXISTS t;
|
ATTACH TABLE IF NOT EXISTS aine;
|
||||||
EXISTS TABLE t;
|
EXISTS TABLE aine;
|
||||||
DROP TABLE t;
|
DROP TABLE aine;
|
||||||
|
Loading…
Reference in New Issue
Block a user