-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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 #18802 from ClickHouse/backport/20.12/18776
Backport #18776 to 20.12: Fix the issue with async Distributed INSERTs and network_compression_method
- Loading branch information
Showing
6 changed files
with
40 additions
and
5 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
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
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
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
2 changes: 2 additions & 0 deletions
2
tests/queries/0_stateless/01640_distributed_async_insert_compression.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,2 @@ | ||
256 | ||
512 |
16 changes: 16 additions & 0 deletions
16
tests/queries/0_stateless/01640_distributed_async_insert_compression.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,16 @@ | ||
DROP TABLE IF EXISTS local; | ||
DROP TABLE IF EXISTS distributed; | ||
|
||
CREATE TABLE local (x UInt8) ENGINE = Memory; | ||
CREATE TABLE distributed AS local ENGINE = Distributed(test_cluster_two_shards, currentDatabase(), local, x); | ||
|
||
SET insert_distributed_sync = 0, network_compression_method = 'zstd'; | ||
|
||
INSERT INTO distributed SELECT number FROM numbers(256); | ||
SYSTEM FLUSH DISTRIBUTED distributed; | ||
|
||
SELECT count() FROM local; | ||
SELECT count() FROM distributed; | ||
|
||
DROP TABLE local; | ||
DROP TABLE distributed; |