Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59545 from ClickHouse/system_zookeeper_stream
Produce stream of chunks from system.zookeeper instead of accumulating the whole result
- Loading branch information
Showing
3 changed files
with
97 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
tests/queries/0_stateless/02976_system_zookeeper_filters.reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 | ||
1 |
17 changes: 17 additions & 0 deletions
17
tests/queries/0_stateless/02976_system_zookeeper_filters.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
-- Tags: zookeeper, no-parallel, no-fasttest, long | ||
|
||
SET allow_unrestricted_reads_from_keeper = 'false'; | ||
|
||
SELECT count() > 0 FROM system.zookeeper; -- { serverError BAD_ARGUMENTS } | ||
SELECT count() > 0 FROM system.zookeeper WHERE name LIKE '%_%'; -- { serverError BAD_ARGUMENTS } | ||
SELECT count() > 0 FROM system.zookeeper WHERE value LIKE '%'; -- { serverError BAD_ARGUMENTS } | ||
SELECT count() > 0 FROM system.zookeeper WHERE path LIKE '/%'; -- { serverError BAD_ARGUMENTS } | ||
SELECT count() > 0 FROM system.zookeeper WHERE path = '/'; | ||
|
||
SET allow_unrestricted_reads_from_keeper = 'true'; | ||
|
||
SELECT count() > 0 FROM system.zookeeper; | ||
SELECT count() > 0 FROM system.zookeeper WHERE name LIKE '%_%'; | ||
SELECT count() > 0 FROM system.zookeeper WHERE value LIKE '%'; | ||
SELECT count() > 0 FROM system.zookeeper WHERE path LIKE '/%'; | ||
SELECT count() > 0 FROM system.zookeeper WHERE path = '/'; |