Skip to content

Commit

Permalink
[regression](partial update) Add row store cases for all existing par…
Browse files Browse the repository at this point in the history
…tial update cases (apache#26924)
  • Loading branch information
bobhan1 authored and seawinde committed Nov 15, 2023
1 parent 598b07d commit c72847a
Show file tree
Hide file tree
Showing 46 changed files with 3,727 additions and 2,897 deletions.
14 changes: 14 additions & 0 deletions regression-test/data/nereids_p0/delete/delete_cte.out
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,17 @@
3 \N 6 3 3.0 \N
3 30 3 3 3.0 2000-01-03

-- !sql --
1 \N 2 1 1.0 \N
1 10 1 1 1.0 2000-01-01
2 \N 4 2 2.0 \N
2 20 2 2 2.0 2000-01-02
3 \N 6 3 3.0 \N
3 30 3 3 3.0 2000-01-03

-- !sql --
2 \N 4 2 2.0 \N
2 20 2 2 2.0 2000-01-02
3 \N 6 3 3.0 \N
3 30 3 3 3.0 2000-01-03

Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,49 @@
4 4 4 4 4 0
5 5 5 5 5 0

-- !sql --
1 1
2 2
3 3
4 4
5 5

-- !sql --
4 4
5 5

-- !sql_skip_delete_predicate --
4 4
5 5

-- !sql --
1 \N 1
1 1 0
2 \N 1
2 2 0
3 \N 1
3 3 0
4 4 0
5 5 0

-- !sql --
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
4 4 4 4 4
5 5 5 5 5

-- !sql --
4 4 4 4 4
5 5 5 5 5

-- !sql --
1 \N \N 0 \N 1
1 1 1 1 1 0
2 \N \N 0 \N 1
2 2 2 2 2 0
3 \N \N 0 \N 1
3 3 3 3 3 0
4 4 4 4 4 0
5 5 5 5 5 0

14 changes: 14 additions & 0 deletions regression-test/data/nereids_p0/delete/delete_using.out
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,17 @@
3 \N 6 3 3.0 \N
3 30 3 3 3.0 2000-01-03

-- !sql --
1 \N 2 1 1.0 \N
1 10 1 1 1.0 2000-01-01
2 \N 4 2 2.0 \N
2 20 2 2 2.0 2000-01-02
3 \N 6 3 3.0 \N
3 30 3 3 3.0 2000-01-03

-- !sql --
2 \N 4 2 2.0 \N
2 20 2 2 2.0 2000-01-02
3 \N 6 3 3.0 \N
3 30 3 3 3.0 2000-01-03

Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,68 @@
3 3 3 2 3
4 4 4 1 2

-- !1 --
1 doris 1000 123 1
2 doris2 2000 223 1

-- !1 --
1 doris 200 123 1
2 doris2 400 223 1
4 yixiu 400 \N 4321

-- !2 --
1 doris 1000 123 1 2023-01-01
2 doris2 2000 223 1 2023-01-01

-- !2 --
1 doris 1000 123 1 2023-01-01
2 doris2 2600 223 1 2023-07-20
3 unknown 2500 \N 4321 2022-07-18

-- !3 --
1 doris 1000 123 1
2 doris2 2000 223 1

-- !3 --
1 doris 1000 123 1
2 doris2 2000 223 1

-- !4 --
1 doris 1000 123 1
2 doris2 2000 223 1
3 doris3 5000 34 345

-- !4 --
1 doris 1000 123 1
3 doris3 5000 34 345

-- !5 --
1 kevin 18 shenzhen 400 2023-07-01T12:00

-- !5 --
1 kevin 18 shenzhen 400 2023-07-01T12:00

-- !6 --
1 1 3 4
2 2 4 5
3 3 2 3
4 4 1 2

-- !6 --
1 2 3 4
2 3 4 5
3 4 2 3
4 5 1 2

-- !7 --
1 1 1 3 4
2 2 2 4 5
3 3 3 2 3
4 4 4 1 2

-- !7 --
1 1 1 3 4
2 2 2 4 5
3 3 3 2 3
4 4 4 1 2

Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,39 @@
-- !complex_delete --
2 2 2 2.0 2000-01-02

-- !tbl1 --
1 1 1 1.0 2000-01-01
2 2 2 2.0 2000-01-02
3 3 3 3.0 2000-01-03

-- !tbl2 --
1 10 10 10.0 2000-01-10
2 20 20 20.0 2000-01-20
3 30 30 30.0 2000-01-30
4 4 4 4.0 2000-01-04
5 5 5 5.0 2000-01-05

-- !tbl3 --
1
3
5

-- !select_result --
1 10 1000.0
3 30 3000.0
5 5 500.0

-- !complex_update --
1 10 1 1000.0 2000-01-01
2 2 2 2.0 2000-01-02
3 30 3 3000.0 2000-01-03
5 5 \N 500.0 \N

-- !select_result --
1 1
3 1
5 1

-- !complex_delete --
2 2 2 2.0 2000-01-02

Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,39 @@
3 "stranger" 500 \N 4321
4 "foreigner" 600 \N 4321

-- !select_default --
1 doris 200 123 1
2 doris2 400 223 1

-- !partial_update_in_one_stream_load --
1 doris 444 123 1
2 doris2 555 223 1

-- !partial_update_in_one_stream_load --
1 doris 1111 123 1
2 doris2 2222 223 1

-- !partial_update_in_one_stream_load --
1 doris 1111 123 1
2 doris2 2222 223 1
3 "stranger" 500 \N 4321
4 "foreigner" 600 \N 4321

-- !partial_update_in_one_stream_load --
1 doris 1111 123 1
2 doris2 2222 223 1
3 "stranger" 500 \N 4321
4 "foreigner" 600 \N 4321

-- !partial_update_in_one_stream_load --
1 doris 1111 123 1
2 doris2 2222 223 1
3 "stranger" 500 \N 4321
4 "foreigner" 600 \N 4321

-- !partial_update_in_one_stream_load --
1 doris 1111 123 1
2 doris2 2222 223 1
3 "stranger" 500 \N 4321
4 "foreigner" 600 \N 4321

Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,72 @@
8 \N aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \N \N \N
9 \N aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \N \N \N

-- !sql --
0 \N \N \N \N \N
1 \N \N \N \N \N
10 \N \N \N \N \N
11 \N \N \N \N \N
12 \N \N \N \N \N
13 \N \N \N \N \N
14 \N \N \N \N \N
15 \N \N \N \N \N
16 \N \N \N \N \N
17 \N \N \N \N \N
18 \N \N \N \N \N
19 \N \N \N \N \N
2 \N \N \N \N \N
20 \N \N \N \N \N
3 \N \N \N \N \N
4 \N \N \N \N \N
5 \N \N \N \N \N
6 \N \N \N \N \N
7 \N \N \N \N \N
8 \N \N \N \N \N
9 \N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aaaaaaaa \N \N \N
8 \N aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \N \N \N
9 \N aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \N \N \N

Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@
2 doris2 400 223 1
3 yixiu 600 4321 4321

-- !select_default --
1 doris 200 123 1
2 doris2 400 223 1
3 yixiu 600 4321 4321

Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,45 @@
4 4 4 4 4 0
5 5 5 5 5 0

-- !sql --
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
4 4 4 4 4
5 5 5 5 5

-- !sql --
4 4 4 4 4
5 5 5 5 5

-- !with_delete_sign --
1 \N \N 0 \N 1
1 1 1 1 1 0
2 \N \N 0 \N 1
2 2 2 2 2 0
3 \N \N 0 \N 1
3 3 3 3 3 0
4 4 4 4 4 0
5 5 5 5 5 0

-- !sql --
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
4 4 4 4 4
5 5 5 5 5

-- !sql --
4 4 4 4 4
5 5 5 5 5

-- !sql --
1 \N \N \N \N 1
1 1 1 1 1 0
2 \N \N \N \N 1
2 2 2 2 2 0
3 \N \N \N \N 1
3 3 3 3 3 0
4 4 4 4 4 0
5 5 5 5 5 0

Loading

0 comments on commit c72847a

Please sign in to comment.