Files
doris/regression-test/data/delete_p0/test_delete_from_partition.out
Ashin Gau 45b31506c7 [improvement](delete) support delete from partitioned table without partition specified (#13533)
Support delete from partitioned table without partition specified in [DELETE] stmt.

## Usage
If it is a partitioned table, you can specify a partition.
If not specified, Doris will infer partition from the given conditions.
In two cases, Doris cannot infer the partition from conditions:
1) the conditions do not contain partition columns;
2) The operator of the partition column is `not in`.
When a partition table does not specify the partition,
or the partition cannot be inferred from the conditions,
the session variable `delete_without_partition` needs to be `true`
to make delete statement be applied to all partitions.

## Test case
Test case is added in `regression-test/suites/delete_p0/test_delete_from_partition.groovy`,
user can delete from partitioned table without partition specified now.
2022-10-27 21:32:45 +08:00

97 lines
905 B
Plaintext

-- This file is automatically generated. You should know what you did if you want to edit this
-- !sql --
1 1 1 1
3 3 3 3
4 4 4 4
5 5 5 5
5 20 5 20
6 6 6 6
7 7 7 7
8 8 8 8
9 9 9 9
12 12 12 12
20 5 20 5
200 200 200 200
-- !sql --
3 3 3 3
4 4 4 4
5 5 5 5
5 20 5 20
6 6 6 6
7 7 7 7
8 8 8 8
9 9 9 9
12 12 12 12
20 5 20 5
200 200 200 200
-- !sql --
4 4 4 4
5 5 5 5
5 20 5 20
6 6 6 6
7 7 7 7
8 8 8 8
9 9 9 9
12 12 12 12
20 5 20 5
200 200 200 200
-- !sql --
5 5 5 5
5 20 5 20
6 6 6 6
7 7 7 7
8 8 8 8
9 9 9 9
12 12 12 12
20 5 20 5
200 200 200 200
-- !sql --
5 20 5 20
7 7 7 7
8 8 8 8
9 9 9 9
12 12 12 12
20 5 20 5
200 200 200 200
-- !sql --
5 20 5 20
200 200 200 200
-- !sql --
a a 1 1
b b 3 2
c c 3 3
d d 4 4
e e 5 5
f f 6 6
g g 7 7
h h 8 8
i i 9 9
-- !sql --
b b 3 2
c c 3 3
d d 4 4
e e 5 5
f f 6 6
g g 7 7
h h 8 8
i i 9 9
-- !sql --
c c 3 3
d d 4 4
e e 5 5
f f 6 6
g g 7 7
i i 9 9
-- !sql --
i i 9 9