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 #57218 from tntnatbry/issue-43666
Issue 43666: Add skip_unavailable_shards as a setting for Distributed table.
- Loading branch information
Showing
7 changed files
with
49 additions
and
4 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
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
1 change: 1 addition & 0 deletions
1
tests/queries/0_stateless/02916_distributed_skip_unavailable_shards.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 @@ | ||
1234 abcd 1 |
28 changes: 28 additions & 0 deletions
28
tests/queries/0_stateless/02916_distributed_skip_unavailable_shards.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,28 @@ | ||
-- Tags: shard, no-fasttest | ||
|
||
DROP TABLE IF EXISTS table_02916; | ||
DROP TABLE IF EXISTS table_02916_distributed; | ||
|
||
CREATE TABLE table_02916 | ||
( | ||
`ID` UInt32, | ||
`Name` String | ||
) | ||
ENGINE = MergeTree | ||
ORDER BY ID; | ||
|
||
INSERT INTO table_02916 VALUES (1234, 'abcd'); | ||
|
||
CREATE TABLE table_02916_distributed | ||
( | ||
`ID` UInt32, | ||
`Name` String | ||
) | ||
ENGINE = Distributed(test_unavailable_shard, currentDatabase(), table_02916, rand()) | ||
SETTINGS skip_unavailable_shards = 1; | ||
|
||
SET send_logs_level='fatal'; | ||
SELECT *, _shard_num FROM table_02916_distributed; | ||
|
||
DROP TABLE table_02916_distributed; | ||
DROP TABLE table_02916; |