forked from apache/doris
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature-wip](autoinc)(step-3) add auto increment support for unique …
…table (apache#22036)
- Loading branch information
Showing
13 changed files
with
474 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Bob, 100 | ||
Alice, 200 | ||
Tom, 300 | ||
Test, 400 | ||
Carter, 500 | ||
Smith, 600 | ||
Beata, 700 | ||
Doris, 800 | ||
Nereids, 900 |
5 changes: 5 additions & 0 deletions
5
regression-test/data/data_model_p0/unique/auto_inc_partial_update1.csv
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,5 @@ | ||
0, 123 | ||
2, 323 | ||
4, 523 | ||
6, 723 | ||
8, 923 |
5 changes: 5 additions & 0 deletions
5
regression-test/data/data_model_p0/unique/auto_inc_partial_update2.csv
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,5 @@ | ||
Bob, 9990 | ||
Tom, 9992 | ||
Carter, 9994 | ||
Beata, 9996 | ||
Nereids, 9998 |
9 changes: 9 additions & 0 deletions
9
regression-test/data/data_model_p0/unique/auto_inc_update_inplace.csv
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,9 @@ | ||
null, Bob, 100 | ||
null, Alice, 200 | ||
null, Tom, 300 | ||
null, Test, 400 | ||
0, Carter, 500 | ||
1, Smith, 600 | ||
2, Beata, 700 | ||
3, Doris, 800 | ||
4, Nereids, 900 |
9 changes: 9 additions & 0 deletions
9
regression-test/data/data_model_p0/unique/auto_inc_with_null.csv
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,9 @@ | ||
null, Bob, 100 | ||
null, Alice, 200 | ||
null, Tom, 300 | ||
null, Test, 400 | ||
4, Carter, 500 | ||
5, Smith, 600 | ||
6, Beata, 700 | ||
7, Doris, 800 | ||
8, Nereids, 900 |
140 changes: 140 additions & 0 deletions
140
regression-test/data/data_model_p0/unique/test_unique_table_auto_inc.out
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,140 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !sql -- | ||
0 Bob 100 | ||
1 Alice 200 | ||
2 Tom 300 | ||
3 Test 400 | ||
4 Carter 500 | ||
5 Smith 600 | ||
6 Beata 700 | ||
7 Doris 800 | ||
8 Nereids 900 | ||
|
||
-- !sql -- | ||
0 Bob 123 | ||
1 Alice 200 | ||
2 Tom 323 | ||
3 Test 400 | ||
4 Carter 523 | ||
5 Smith 600 | ||
6 Beata 700 | ||
7 Doris 800 | ||
8 Nereids 900 | ||
|
||
-- !sql -- | ||
0 Bob 100 | ||
1 Alice 200 | ||
2 Tom 300 | ||
3 Test 400 | ||
4 Carter 500 | ||
5 Smith 600 | ||
6 Beata 700 | ||
7 Doris 800 | ||
8 Nereids 900 | ||
|
||
-- !sql -- | ||
1 Alice 200 | ||
3 Test 400 | ||
5 Smith 600 | ||
6 Beata 700 | ||
7 Doris 800 | ||
8 Nereids 900 | ||
1230 Bob 100 | ||
1232 Tom 300 | ||
1234 Carter 500 | ||
|
||
-- !sql -- | ||
0 Bob 100 | ||
1 Alice 200 | ||
2 Tom 300 | ||
3 Test 400 | ||
4 Carter 500 | ||
5 Smith 600 | ||
6 Beata 700 | ||
7 Doris 800 | ||
8 Nereids 900 | ||
|
||
-- !sql -- | ||
0 Bob 123 | ||
1 Alice 200 | ||
2 Tom 323 | ||
3 Test 400 | ||
4 Carter 523 | ||
5 Smith 600 | ||
6 Beata 700 | ||
7 Doris 800 | ||
8 Nereids 900 | ||
|
||
-- !update_inplace -- | ||
0 Carter 500 | ||
1 Smith 600 | ||
2 Beata 700 | ||
3 Doris 800 | ||
4 Nereids 900 | ||
|
||
-- !partial_update_key -- | ||
0 Bob 100 | ||
1 Alice 200 | ||
2 Tom 300 | ||
3 Test 400 | ||
4 Carter 500 | ||
5 Smith 600 | ||
6 Beata 700 | ||
7 Doris 800 | ||
8 Nereids 900 | ||
|
||
-- !partial_update_key -- | ||
0 Bob 123 | ||
1 Alice 200 | ||
2 Tom 323 | ||
3 Test 400 | ||
4 Carter 523 | ||
5 Smith 600 | ||
6 Beata 723 | ||
7 Doris 800 | ||
8 Nereids 923 | ||
|
||
-- !partial_update_value -- | ||
Bob 100 0 | ||
Alice 200 1 | ||
Tom 300 2 | ||
Test 400 3 | ||
Carter 500 4 | ||
Smith 600 5 | ||
Beata 700 6 | ||
Doris 800 7 | ||
Nereids 900 8 | ||
|
||
-- !partial_update_value -- | ||
Alice 200 1 | ||
Test 400 3 | ||
Smith 600 5 | ||
Doris 800 7 | ||
Bob 100 9990 | ||
Tom 300 9992 | ||
Carter 500 9994 | ||
Beata 700 9996 | ||
Nereids 900 9998 | ||
|
||
-- !partial_update_value -- | ||
Bob 100 0 | ||
Alice 200 1 | ||
Tom 300 2 | ||
Test 400 3 | ||
Carter 500 4 | ||
Smith 600 5 | ||
Beata 700 6 | ||
Doris 800 7 | ||
Nereids 900 8 | ||
|
||
-- !partial_update_value -- | ||
Bob 9990 0 | ||
Alice 200 1 | ||
Tom 9992 2 | ||
Test 400 3 | ||
Carter 9994 4 | ||
Smith 600 5 | ||
Beata 9996 6 | ||
Doris 800 7 | ||
Nereids 9998 8 | ||
|
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
Oops, something went wrong.