-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test](stream load) add cases to ensure the correctness of the docume…
- Loading branch information
Showing
12 changed files
with
715 additions
and
0 deletions.
There are no files selected for viewing
154 changes: 154 additions & 0 deletions
154
regression-test/data/doc/data-operate/import/import-way/stream-load-manual.md.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,154 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !sql1 -- | ||
1 Emily 25 | ||
2 Benjamin 35 | ||
3 Olivia 28 | ||
4 Alexander 60 | ||
5 Ava 17 | ||
6 William 69 | ||
7 Sophia 32 | ||
8 James 64 | ||
9 Emma 37 | ||
10 Liam 64 | ||
|
||
-- !sql2 -- | ||
1 Emily 25 | ||
2 Benjamin 35 | ||
3 Olivia 28 | ||
4 Alexander 60 | ||
5 Ava 17 | ||
6 William 69 | ||
7 Sophia 32 | ||
8 James 64 | ||
9 Emma 37 | ||
10 Liam 64 | ||
|
||
-- !sql3 -- | ||
1 Emily 25 | ||
2 Benjamin 35 | ||
3 Olivia 28 | ||
4 Alexander 60 | ||
5 Ava 17 | ||
6 William 69 | ||
7 Sophia 32 | ||
8 James 64 | ||
9 Emma 37 | ||
10 Liam 64 | ||
|
||
-- !sql4 -- | ||
1 Emily 25 | ||
2 Benjamin 35 | ||
3 Olivia 28 | ||
4 Alexander 60 | ||
5 Ava 17 | ||
6 William 69 | ||
7 Sophia 32 | ||
8 James 64 | ||
9 Emma 37 | ||
10 Liam 64 | ||
|
||
-- !sql5 -- | ||
2 Benjamin 35 | ||
4 Alexander 60 | ||
6 William 69 | ||
8 James 64 | ||
9 Emma 37 | ||
10 Liam 64 | ||
|
||
-- !sql6 -- | ||
2 Benjamin 35 | ||
3 Olivia 28 | ||
4 Alexander 60 | ||
5 Ava 17 | ||
6 William 69 | ||
7 Sophia 32 | ||
8 James 64 | ||
9 Emma 37 | ||
10 Liam 64 | ||
|
||
-- !sql7 -- | ||
3 Olivia 28 | ||
4 Alexander 60 | ||
5 Ava 17 | ||
6 William 69 | ||
7 Sophia 32 | ||
8 James 64 | ||
9 Emma 37 | ||
10 Liam 64 | ||
|
||
-- !sql7 -- | ||
2 Benjamin 35 | ||
3 Olivia 28 | ||
4 Alexander 60 | ||
5 Ava 17 | ||
6 William 69 | ||
7 Sophia 32 | ||
8 James 64 | ||
9 Emma 37 | ||
10 Liam 64 | ||
|
||
-- !sql8 -- | ||
2 Benjamin 35 | ||
3 Olivia 28 | ||
4 Alexander 60 | ||
5 Ava 17 | ||
6 William 69 | ||
7 Sophia 32 | ||
8 James 64 | ||
9 Emma 37 | ||
10 Liam 64 | ||
|
||
-- !sql9 -- | ||
张三 30 上海市,黄浦区,'大沽路 | ||
|
||
-- !sql10 -- | ||
1 avc \N | ||
|
||
-- !sql11 -- | ||
1 Emily [1, 2, 3, 4] | ||
2 Benjamin [22, 45, 90, 12] | ||
3 Olivia [23, 16, 19, 16] | ||
4 Alexander [123, 234, 456] | ||
5 Ava [12, 15, 789] | ||
6 William [57, 68, 97] | ||
7 Sophia [46, 47, 49] | ||
8 James [110, 127, 128] | ||
9 Emma [19, 18, 123, 446] | ||
10 Liam [89, 87, 96, 12] | ||
|
||
-- !sql12 -- | ||
1 {"Emily":101, "age":25} | ||
2 {"Benjamin":102, "age":35} | ||
3 {"Olivia":103, "age":28} | ||
4 {"Alexander":104, "age":60} | ||
5 {"Ava":105, "age":17} | ||
6 {"William":106, "age":69} | ||
7 {"Sophia":107, "age":32} | ||
8 {"James":108, "age":64} | ||
9 {"Emma":109, "age":37} | ||
10 {"Liam":110, "age":64} | ||
|
||
-- !sql13 -- | ||
1 koga \N | ||
2 nijg \N | ||
3 lojn \N | ||
4 lofn \N | ||
5 jfin \N | ||
6 kon \N | ||
7 nhga \N | ||
8 nfubg \N | ||
9 huang \N | ||
10 buag \N | ||
|
||
-- !sql14 -- | ||
1001 koga \N | ||
1002 nijg \N | ||
1003 lojn \N | ||
1004 lofn \N | ||
1005 jfin \N | ||
1006 kon \N | ||
1007 nhga \N | ||
1008 nfubg \N | ||
1009 huang \N | ||
1010 buag \N | ||
|
10 changes: 10 additions & 0 deletions
10
regression-test/data/doc/data-operate/import/import-way/streamload_example.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,10 @@ | ||
1,Emily,25 | ||
2,Benjamin,35 | ||
3,Olivia,28 | ||
4,Alexander,60 | ||
5,Ava,17 | ||
6,William,69 | ||
7,Sophia,32 | ||
8,James,64 | ||
9,Emma,37 | ||
10,Liam,64 |
12 changes: 12 additions & 0 deletions
12
regression-test/data/doc/data-operate/import/import-way/streamload_example.json
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,12 @@ | ||
[ | ||
{"userid":1,"username":"Emily","userage":25}, | ||
{"userid":2,"username":"Benjamin","userage":35}, | ||
{"userid":3,"username":"Olivia","userage":28}, | ||
{"userid":4,"username":"Alexander","userage":60}, | ||
{"userid":5,"username":"Ava","userage":17}, | ||
{"userid":6,"username":"William","userage":69}, | ||
{"userid":7,"username":"Sophia","userage":32}, | ||
{"userid":8,"username":"James","userage":64}, | ||
{"userid":9,"username":"Emma","userage":37}, | ||
{"userid":10,"username":"Liam","userage":64} | ||
] |
10 changes: 10 additions & 0 deletions
10
regression-test/data/doc/data-operate/import/import-way/test_array.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,10 @@ | ||
1|Emily|[1,2,3,4] | ||
2|Benjamin|[22,45,90,12] | ||
3|Olivia|[23,16,19,16] | ||
4|Alexander|[123,234,456] | ||
5|Ava|[12,15,789] | ||
6|William|[57,68,97] | ||
7|Sophia|[46,47,49] | ||
8|James|[110,127,128] | ||
9|Emma|[19,18,123,446] | ||
10|Liam|[89,87,96,12] |
10 changes: 10 additions & 0 deletions
10
regression-test/data/doc/data-operate/import/import-way/test_bitmap.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,10 @@ | ||
1|koga|17723 | ||
2|nijg|146285 | ||
3|lojn|347890 | ||
4|lofn|489871 | ||
5|jfin|545679 | ||
6|kon|676724 | ||
7|nhga|767689 | ||
8|nfubg|879878 | ||
9|huang|969798 | ||
10|buag|97997 |
1 change: 1 addition & 0 deletions
1
regression-test/data/doc/data-operate/import/import-way/test_default.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 @@ | ||
1,avc,2024 |
1 change: 1 addition & 0 deletions
1
regression-test/data/doc/data-operate/import/import-way/test_enclose_and_escape.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 @@ | ||
张三,30,'上海市,黄浦区,\'大沽路' |
10 changes: 10 additions & 0 deletions
10
regression-test/data/doc/data-operate/import/import-way/test_hll.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,10 @@ | ||
1001|koga | ||
1002|nijg | ||
1003|lojn | ||
1004|lofn | ||
1005|jfin | ||
1006|kon | ||
1007|nhga | ||
1008|nfubg | ||
1009|huang | ||
1010|buag |
12 changes: 12 additions & 0 deletions
12
regression-test/data/doc/data-operate/import/import-way/test_map.json
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,12 @@ | ||
[ | ||
{"user_id":1,"namemap":{"Emily":101,"age":25}}, | ||
{"user_id":2,"namemap":{"Benjamin":102,"age":35}}, | ||
{"user_id":3,"namemap":{"Olivia":103,"age":28}}, | ||
{"user_id":4,"namemap":{"Alexander":104,"age":60}}, | ||
{"user_id":5,"namemap":{"Ava":105,"age":17}}, | ||
{"user_id":6,"namemap":{"William":106,"age":69}}, | ||
{"user_id":7,"namemap":{"Sophia":107,"age":32}}, | ||
{"user_id":8,"namemap":{"James":108,"age":64}}, | ||
{"user_id":9,"namemap":{"Emma":109,"age":37}}, | ||
{"user_id":10,"namemap":{"Liam":110,"age":64}} | ||
] |
2 changes: 2 additions & 0 deletions
2
regression-test/data/doc/data-operate/import/import-way/test_merge_type.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,2 @@ | ||
1,Emily,25 | ||
2,Benjamin,35 |
1 change: 1 addition & 0 deletions
1
regression-test/data/doc/data-operate/import/import-way/test_seq.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 @@ | ||
1,Emily,26 |
Oops, something went wrong.