Merge pull request #20449 from ClickHouse/fix_bad_test

Fix 01700_system_zookeeper_path_in
This commit is contained in:
alexey-milovidov 2021-02-13 02:07:29 +03:00 committed by GitHub
commit abb7c88b80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 13 deletions

View File

@ -1,7 +1,16 @@
clickhouse block_numbers
task_queue blocks
clickhouse 1
task_queue ========
clickhouse block_numbers
task_queue blocks
ddl 1
========
block_numbers
blocks
========
1
failed_parts
last_part
leader_election-0000000000
parallel

View File

@ -1,6 +1,19 @@
SELECT name FROM system.zookeeper WHERE path = '/'; DROP TABLE IF EXISTS sample_table;
SELECT name FROM system.zookeeper WHERE path = 'clickhouse';
SELECT name FROM system.zookeeper WHERE path IN ('/'); CREATE TABLE sample_table (
SELECT name FROM system.zookeeper WHERE path IN ('clickhouse'); key UInt64
SELECT name FROM system.zookeeper WHERE path IN ('/','/clickhouse'); )
SELECT name FROM system.zookeeper WHERE path IN (SELECT concat('/clickhouse/',name) FROM system.zookeeper WHERE (path = '/clickhouse/')); ENGINE ReplicatedMergeTree('/clickhouse/01700_system_zookeeper_path_in', '1')
ORDER BY tuple();
SELECT name FROM system.zookeeper WHERE path = '/clickhouse/01700_system_zookeeper_path_in' AND name like 'block%' ORDER BY name;
SELECT name FROM system.zookeeper WHERE path = '/clickhouse/01700_system_zookeeper_path_in/replicas' ORDER BY name;
SELECT '========';
SELECT name FROM system.zookeeper WHERE path IN ('/clickhouse/01700_system_zookeeper_path_in') AND name LIKE 'block%' ORDER BY name;
SELECT name FROM system.zookeeper WHERE path IN ('/clickhouse/01700_system_zookeeper_path_in/replicas') ORDER BY name;
SELECT '========';
SELECT name FROM system.zookeeper WHERE path IN ('/clickhouse/01700_system_zookeeper_path_in','/clickhouse/01700_system_zookeeper_path_in/replicas') AND name LIKE 'block%' ORDER BY name;
SELECT '========';
SELECT name FROM system.zookeeper WHERE path IN (SELECT concat('/clickhouse/01700_system_zookeeper_path_in/', name) FROM system.zookeeper WHERE (path = '/clickhouse/01700_system_zookeeper_path_in')) ORDER BY name;
DROP TABLE IF EXISTS sample_table;