mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
fix bug
This commit is contained in:
parent
3a1e67dc8b
commit
646a11a0ef
@ -1,27 +1,5 @@
|
||||
-- Check MergeTree declaration in new format
|
||||
CREATE TABLE check_system_tables
|
||||
(
|
||||
name1 UInt8,
|
||||
name2 UInt8,
|
||||
name3 UInt8
|
||||
) ENGINE = MergeTree()
|
||||
ORDER BY name1
|
||||
PARTITION BY name2
|
||||
SAMPLE BY name1
|
||||
SETTINGS min_bytes_for_wide_part = 0, compress_marks=false, compress_primary_key=false;
|
||||
DROP TABLE IF EXISTS json_columns;
|
||||
|
||||
SELECT parts, active_parts,total_marks FROM system.tables WHERE name = 'check_system_tables' AND database = currentDatabase();
|
||||
CREATE TABLE json_columns (n UInt32, s String) ENGINE = MergeTree order by n;
|
||||
|
||||
INSERT INTO check_system_tables VALUES (1, 1, 1);
|
||||
|
||||
SELECT parts, active_parts,total_marks FROM system.tables WHERE name = 'check_system_tables' AND database = currentDatabase();
|
||||
|
||||
INSERT INTO check_system_tables VALUES (1, 2, 1);
|
||||
|
||||
SELECT parts, active_parts,total_marks FROM system.tables WHERE name = 'check_system_tables' AND database = currentDatabase();
|
||||
|
||||
ALTER TABLE check_system_tables DETACH PARTITION 1;
|
||||
|
||||
SELECT parts, active_parts,total_marks FROM system.tables WHERE name = 'check_system_tables' AND database = currentDatabase();
|
||||
|
||||
DROP TABLE IF EXISTS check_system_tables;
|
||||
SELECT * FROM json_columns FORMAT JSONColumns;
|
||||
|
Loading…
Reference in New Issue
Block a user