mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
init
This commit is contained in:
parent
f36408a666
commit
6863dc7647
@ -55,6 +55,21 @@ CREATE TABLE NULL (c String) ENGINE = MergeTree ORDER BY c;
|
||||
SHOW COLUMNS FROM NULL;
|
||||
DROP TABLE NULL;
|
||||
|
||||
DROP TABLE IF EXISTS `tab.with.dots`;
|
||||
CREATE TABLE `tab.with.dots`
|
||||
(
|
||||
`uint64` UInt64,
|
||||
`int32` Nullable(Int32) COMMENT 'example comment',
|
||||
`str` String,
|
||||
INDEX idx str TYPE set(1000)
|
||||
)
|
||||
ENGINE = MergeTree
|
||||
PRIMARY KEY (uint64)
|
||||
ORDER BY (uint64, str);
|
||||
SELECT '--- SHOW COLUMNS FROM table with dots';
|
||||
SHOW COLUMNS FROM `tab.with.dots`;
|
||||
DROP TABLE `tab.with.dots`;
|
||||
|
||||
DROP DATABASE IF EXISTS `'`;
|
||||
CREATE DATABASE `'`;
|
||||
CREATE TABLE `'`.`'` (c String) ENGINE = MergeTree ORDER BY c;
|
||||
@ -90,18 +105,3 @@ SHOW COLUMNS FROM database_123456789abcde.tab;
|
||||
DROP DATABASE database_123456789abcde;
|
||||
|
||||
DROP TABLE tab;
|
||||
|
||||
DROP TABLE IF EXISTS `tab.with.dots`;
|
||||
CREATE TABLE `tab.with.dots`
|
||||
(
|
||||
`uint64` UInt64,
|
||||
`int32` Nullable(Int32) COMMENT 'example comment',
|
||||
`str` String,
|
||||
INDEX idx str TYPE set(1000)
|
||||
)
|
||||
ENGINE = MergeTree
|
||||
PRIMARY KEY (uint64)
|
||||
ORDER BY (uint64, str);
|
||||
SELECT '--- SHOW COLUMNS FROM table with dots';
|
||||
SHOW COLUMNS FROM `tab.with.dots`;
|
||||
DROP TABLE `tab.with.dots`;
|
||||
|
@ -43,6 +43,25 @@ CREATE TABLE NULL (c String) ENGINE = MergeTree ORDER BY c;
|
||||
SHOW INDEX FROM NULL;
|
||||
DROP TABLE NULL;
|
||||
|
||||
DROP TABLE IF EXISTS `tab.with.dots`;
|
||||
CREATE TABLE `tab.with.dots`
|
||||
(
|
||||
a UInt64,
|
||||
b UInt64,
|
||||
c UInt64,
|
||||
d UInt64,
|
||||
e UInt64,
|
||||
INDEX mm1_idx (a, c, d) TYPE minmax,
|
||||
INDEX mm2_idx (c, d, e) TYPE minmax,
|
||||
INDEX set_idx (e) TYPE set(100),
|
||||
INDEX blf_idx (d, b) TYPE bloom_filter(0.8)
|
||||
)
|
||||
ENGINE = MergeTree
|
||||
PRIMARY KEY (c, a);
|
||||
SELECT '--- SHOW INDEX FROM table with dots';
|
||||
SHOW INDEX FROM `tab.with.dots`;
|
||||
DROP TABLE `tab.with.dots`;
|
||||
|
||||
DROP DATABASE IF EXISTS `'`;
|
||||
CREATE DATABASE `'`;
|
||||
CREATE TABLE `'`.`'` (c String) ENGINE = MergeTree ORDER BY c;
|
||||
@ -78,22 +97,3 @@ SHOW INDEX FROM database_123456789abcde.tbl;
|
||||
DROP DATABASE database_123456789abcde;
|
||||
|
||||
DROP TABLE tbl;
|
||||
|
||||
DROP TABLE IF EXISTS `tab.with.dots`;
|
||||
CREATE TABLE `tab.with.dots`
|
||||
(
|
||||
a UInt64,
|
||||
b UInt64,
|
||||
c UInt64,
|
||||
d UInt64,
|
||||
e UInt64,
|
||||
INDEX mm1_idx (a, c, d) TYPE minmax,
|
||||
INDEX mm2_idx (c, d, e) TYPE minmax,
|
||||
INDEX set_idx (e) TYPE set(100),
|
||||
INDEX blf_idx (d, b) TYPE bloom_filter(0.8)
|
||||
)
|
||||
ENGINE = MergeTree
|
||||
PRIMARY KEY (c, a);
|
||||
SELECT '--- SHOW INDEX FROM table with dots';
|
||||
SHOW INDEX FROM `tab.with.dots`;
|
||||
DROP TABLE `tab.with.dots`;
|
||||
|
Loading…
Reference in New Issue
Block a user