Skip to content

Commit 3b78967

Browse files
authored
Update test_alter_drop_multi_partition.groovy
1 parent 8e22a1d commit 3b78967

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

regression-test/suites/mv_p0/test_alter_drop_multi_partition/test_alter_drop_multi_partition.groovy

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ suite("test_drop_partition_range") {
161161
List<List<Object>> result13 = sql "show partitions from drop_range_partition_6;"
162162
assertEquals(result13.size(), 4)
163163

164-
// Test 8: Delete partitions by date number without intervals
164+
// Test 7: Delete partitions by date number without intervals
165165
sql """
166166
CREATE TABLE drop_range_partition_7
167167
(
@@ -185,29 +185,4 @@ suite("test_drop_partition_range") {
185185
sql "ALTER TABLE drop_range_partition_7 DROP PARTITION FROM (1) TO (3);"
186186
List<List<Object>> result14 = sql "show partitions from drop_range_partition_7;"
187187
assertEquals(result14.size(), 2)
188-
189-
// Test 8: Delete partitions by date range without intervals
190-
sql """
191-
CREATE TABLE drop_range_partition_8
192-
(
193-
`k1` LARGEINT NOT NULL,
194-
`age` SMALLINT,
195-
`k2` VARCHAR(20)
196-
)
197-
ENGINE=OLAP
198-
UNIQUE KEY(`k1`, `age`)
199-
PARTITION BY RANGE(`age`)
200-
(
201-
PARTITION p_1 VALUES [("1"), ("10")),
202-
PARTITION p_2 VALUES [("10"), ("20")),
203-
PARTITION p_3 VALUES [("20"), ("30")),
204-
PARTITION p_4 VALUES [("30"), ("40"))
205-
)
206-
DISTRIBUTED BY HASH(`k1`) BUCKETS 1
207-
PROPERTIES ("replication_num" = "1");
208-
"""
209-
210-
sql "ALTER TABLE drop_range_partition_8 DROP PARTITION FROM (1) TO (3);"
211-
List<List<Object>> result15 = sql "show partitions from drop_range_partition_8;"
212-
assertEquals(result15.size(), 2)
213188
}

0 commit comments

Comments
 (0)