fix references + remove index

This commit is contained in:
Yarik Briukhovetskyi 2024-09-16 13:53:47 +02:00 committed by GitHub
parent 6863dc7647
commit dc02b168a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 23 deletions

View File

@ -33,6 +33,7 @@ c String NO PRI SOR \N
c String NO PRI SOR \N
c String NO PRI SOR \N
c String NO PRI SOR \N
c String NO PRI SOR \N
--- Original table
int32 Nullable(Int32) YES \N
str String NO SOR \N
@ -45,7 +46,3 @@ uint64 UInt64 NO PRI SOR \N
int32 Int32 NO \N
str String NO \N
uint64 UInt64 NO PRI SOR \N
--- SHOW COLUMNS FROM table with dots
int32 Nullable(Int32) YES \N
str String NO SOR \N
uint64 UInt64 NO PRI SOR \N

View File

@ -56,17 +56,7 @@ 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';
CREATE TABLE `tab.with.dots` (c String) ENGINE = MergeTree ORDER BY c;
SHOW COLUMNS FROM `tab.with.dots`;
DROP TABLE `tab.with.dots`;

View File

@ -34,6 +34,12 @@ tbl 1 set_idx 1 \N 0 \N \N \N SET YES e
--- Check with weird table names
$4@^7 1 PRIMARY 1 c A 0 \N \N \N PRIMARY YES
NULL 1 PRIMARY 1 c A 0 \N \N \N PRIMARY YES
tab.with.dots 1 blf_idx 1 \N 0 \N \N \N BLOOM_FILTER YES d, b
tab.with.dots 1 mm1_idx 1 \N 0 \N \N \N MINMAX YES a, c, d
tab.with.dots 1 mm2_idx 1 \N 0 \N \N \N MINMAX YES c, d, e
tab.with.dots 1 PRIMARY 1 c A 0 \N \N \N PRIMARY YES
tab.with.dots 1 PRIMARY 2 a A 0 \N \N \N PRIMARY YES
tab.with.dots 1 set_idx 1 \N 0 \N \N \N SET YES e
\' 1 PRIMARY 1 c A 0 \N \N \N PRIMARY YES
\' 1 PRIMARY 1 c A 0 \N \N \N PRIMARY YES
--- Original table
@ -49,10 +55,3 @@ tbl 1 PRIMARY 1 a A 0 \N \N \N PRIMARY YES
--- Short form
tbl 1 mmi_idx 1 \N 0 \N \N \N MINMAX YES b
tbl 1 PRIMARY 1 a A 0 \N \N \N PRIMARY YES
--- SHOW INDEX FROM table with dots
tab.with.dots 1 blf_idx 1 \N 0 \N \N \N BLOOM_FILTER YES d, b
tab.with.dots 1 mm1_idx 1 \N 0 \N \N \N MINMAX YES a, c, d
tab.with.dots 1 mm2_idx 1 \N 0 \N \N \N MINMAX YES c, d, e
tab.with.dots 1 PRIMARY 1 c A 0 \N \N \N PRIMARY YES
tab.with.dots 1 PRIMARY 2 a A 0 \N \N \N PRIMARY YES
tab.with.dots 1 set_idx 1 \N 0 \N \N \N SET YES e

View File

@ -58,7 +58,6 @@ CREATE TABLE `tab.with.dots`
)
ENGINE = MergeTree
PRIMARY KEY (c, a);
SELECT '--- SHOW INDEX FROM table with dots';
SHOW INDEX FROM `tab.with.dots`;
DROP TABLE `tab.with.dots`;