mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
add test for system.zookeeper
table unrestricted read with WHERE path LIKE pattern
clause
This commit is contained in:
parent
2d25c79e37
commit
24058c3327
@ -0,0 +1,153 @@
|
||||
alter_partition_version
|
||||
alter_partition_version
|
||||
block_numbers
|
||||
block_numbers
|
||||
blocks
|
||||
blocks
|
||||
columns
|
||||
columns
|
||||
columns
|
||||
columns
|
||||
failed_parts
|
||||
failed_parts
|
||||
flags
|
||||
flags
|
||||
host
|
||||
host
|
||||
is_active
|
||||
is_active
|
||||
is_lost
|
||||
is_lost
|
||||
last_part
|
||||
last_part
|
||||
leader_election
|
||||
leader_election
|
||||
leader_election-0
|
||||
leader_election-0
|
||||
log
|
||||
log
|
||||
log_pointer
|
||||
log_pointer
|
||||
max_processed_insert_time
|
||||
max_processed_insert_time
|
||||
metadata
|
||||
metadata
|
||||
metadata
|
||||
metadata
|
||||
metadata_version
|
||||
metadata_version
|
||||
min_unprocessed_insert_time
|
||||
min_unprocessed_insert_time
|
||||
mutation_pointer
|
||||
mutation_pointer
|
||||
mutations
|
||||
mutations
|
||||
nonincrement_block_numbers
|
||||
nonincrement_block_numbers
|
||||
parallel
|
||||
parallel
|
||||
part_moves_shard
|
||||
part_moves_shard
|
||||
parts
|
||||
parts
|
||||
pinned_part_uuids
|
||||
pinned_part_uuids
|
||||
queue
|
||||
queue
|
||||
quorum
|
||||
quorum
|
||||
r1
|
||||
r1
|
||||
replicas
|
||||
replicas
|
||||
s1
|
||||
s1
|
||||
shared
|
||||
shared
|
||||
shared
|
||||
shared
|
||||
table_shared_id
|
||||
table_shared_id
|
||||
temp
|
||||
temp
|
||||
zero_copy_hdfs
|
||||
zero_copy_hdfs
|
||||
zero_copy_s3
|
||||
zero_copy_s3
|
||||
-------------------------
|
||||
alter_partition_version
|
||||
alter_partition_version
|
||||
block_numbers
|
||||
block_numbers
|
||||
blocks
|
||||
blocks
|
||||
columns
|
||||
columns
|
||||
columns
|
||||
columns
|
||||
failed_parts
|
||||
failed_parts
|
||||
flags
|
||||
flags
|
||||
host
|
||||
host
|
||||
is_active
|
||||
is_active
|
||||
is_lost
|
||||
is_lost
|
||||
last_part
|
||||
last_part
|
||||
leader_election
|
||||
leader_election
|
||||
leader_election-0
|
||||
leader_election-0
|
||||
log
|
||||
log
|
||||
log_pointer
|
||||
log_pointer
|
||||
max_processed_insert_time
|
||||
max_processed_insert_time
|
||||
metadata
|
||||
metadata
|
||||
metadata
|
||||
metadata
|
||||
metadata_version
|
||||
metadata_version
|
||||
min_unprocessed_insert_time
|
||||
min_unprocessed_insert_time
|
||||
mutation_pointer
|
||||
mutation_pointer
|
||||
mutations
|
||||
mutations
|
||||
nonincrement_block_numbers
|
||||
nonincrement_block_numbers
|
||||
parallel
|
||||
parallel
|
||||
part_moves_shard
|
||||
part_moves_shard
|
||||
parts
|
||||
parts
|
||||
pinned_part_uuids
|
||||
pinned_part_uuids
|
||||
queue
|
||||
queue
|
||||
quorum
|
||||
quorum
|
||||
r1
|
||||
r1
|
||||
replicas
|
||||
replicas
|
||||
s1
|
||||
s1
|
||||
shared
|
||||
shared
|
||||
shared
|
||||
shared
|
||||
table_shared_id
|
||||
table_shared_id
|
||||
temp
|
||||
temp
|
||||
zero_copy_hdfs
|
||||
zero_copy_hdfs
|
||||
zero_copy_s3
|
||||
zero_copy_s3
|
@ -0,0 +1,28 @@
|
||||
-- Tags: zookeeper
|
||||
|
||||
DROP TABLE IF EXISTS sample_table;
|
||||
|
||||
SET allow_unrestricted_reads_from_keeper='true';
|
||||
|
||||
CREATE TABLE sample_table (
|
||||
key UInt64
|
||||
)
|
||||
ENGINE ReplicatedMergeTree('/clickhouse/{database}/02221_system_zookeeper_unrestricted_like/{shard}', '{replica}')
|
||||
ORDER BY tuple();
|
||||
|
||||
DROP TABLE IF EXISTS sample_table_2;
|
||||
|
||||
CREATE TABLE sample_table_2 (
|
||||
key UInt64
|
||||
)
|
||||
ENGINE ReplicatedMergeTree('/clickhouse/{database}/02221_system_zookeeper_unrestricted_like_2/{shard}', '{replica}')
|
||||
ORDER BY tuple();
|
||||
|
||||
SELECT name FROM (SELECT path, name FROM system.zookeeper WHERE path LIKE '/clickhouse%' ORDER BY name) WHERE path LIKE '%02221_system_zookeeper_unrestricted_like%';
|
||||
|
||||
SELECT '-------------------------';
|
||||
|
||||
SELECT name FROM (SELECT path, name FROM system.zookeeper WHERE path LIKE '/clickhouse/%' ORDER BY name) WHERE path LIKE '%02221_system_zookeeper_unrestricted_like%';
|
||||
|
||||
DROP TABLE IF EXISTS sample_table;
|
||||
DROP TABLE IF EXISTS sample_table_2;
|
Loading…
Reference in New Issue
Block a user