Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow max_size_to_drop settings in query time (#57452)
- Loading branch information
Showing
10 changed files
with
104 additions
and
8 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
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
Empty file.
31 changes: 31 additions & 0 deletions
31
tests/queries/0_stateless/02932_query_settings_max_size_drop.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,31 @@ | ||
CREATE TABLE test_max_size_drop | ||
Engine = MergeTree() | ||
ORDER BY number | ||
AS SELECT number | ||
FROM numbers(1000) | ||
; | ||
|
||
DROP TABLE test_max_size_drop SETTINGS max_table_size_to_drop = 1; -- { serverError 359 } | ||
DROP TABLE test_max_size_drop; | ||
|
||
CREATE TABLE test_max_size_drop | ||
Engine = MergeTree() | ||
ORDER BY number | ||
AS SELECT number | ||
FROM numbers(1000) | ||
; | ||
|
||
ALTER TABLE test_max_size_drop DROP PARTITION tuple() SETTINGS max_partition_size_to_drop = 1; -- { serverError 359 } | ||
ALTER TABLE test_max_size_drop DROP PARTITION tuple(); | ||
DROP TABLE test_max_size_drop; | ||
|
||
CREATE TABLE test_max_size_drop | ||
Engine = MergeTree() | ||
ORDER BY number | ||
AS SELECT number | ||
FROM numbers(1000) | ||
; | ||
|
||
ALTER TABLE test_max_size_drop DROP PART 'all_1_1_0' SETTINGS max_partition_size_to_drop = 1; -- { serverError 359 } | ||
ALTER TABLE test_max_size_drop DROP PART 'all_1_1_0'; | ||
DROP TABLE test_max_size_drop; |