Skip to content

Commit aa9b1dc

Browse files
authored
[chore](case) add cases for complex type doc (apache#53126)
1 parent 5ca18a4 commit aa9b1dc

File tree

6 files changed

+1918
-0
lines changed

6 files changed

+1918
-0
lines changed
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
-- This file is automatically generated. You should know what you did if you want to edit this
2+
-- !sql --
3+
1 [1, 0, 1] [1, 2, 3] [1, 2, 3] [1, 2, 3] [1, 2, 3] [1, 2, 3] [1.1, 2.2, 3.3] [1.1, 2.2, 3.3] [1.10, 2.20, 3.30] [1.100, 2.200, 3.300] [1.10000, 2.20000, 3.30000] [1.1000000, 2.2000000, 3.3000000] ["hello", "world"] ["hello", "world"] ["hello", "world"] ["2021-01-01", "2021-01-02", "2021-01-03"] ["2021-01-01 00:00:00", "2021-01-02 00:00:00", "2021-01-03 00:00:00"] ["192.168.1.1", "192.168.1.2", "192.168.1.3"] ["::1", "::2", "::3"] [{"id":1, "name":"John"}, {"id":2, "name":"Jane"}] [[1, 2, 3], [4, 5, 6]] [{"key1":1}, {"key2":2}]
4+
5+
-- !sql --
6+
[1, 2, 3]
7+
8+
-- !sql --
9+
["1", "2", "3"]
10+
11+
-- !sql --
12+
[1, 2, 3]
13+
14+
-- !sql --
15+
[1, 2, 3] 2
16+
17+
-- !sql --
18+
1 [1, 2, 3] 1 [1, 2, 3]
19+
1 [1, 2, 3] 2 [1, 2, 3]
20+
2 [1, 2, 3] 1 [1, 2, 3]
21+
2 [1, 2, 3] 2 [1, 2, 3]
22+
23+
-- !sql --
24+
[1, 2, 3] 1
25+
[1, 2, 4] 1
26+
[1, 2, 5] 1
27+
28+
-- !sql --
29+
["hello", "world"] 3
30+
31+
-- !sql --
32+
[1.1, 2.2, 3.3] 2
33+
34+
-- !sql --
35+
[1.1, 2.2, 3.3] 2
36+
37+
-- !sql --
38+
[1.10, 2.20, 3.30] 2
39+
40+
-- !sql --
41+
[1.100, 2.200, 3.300] 2
42+
43+
-- !sql --
44+
[1.10000, 2.20000, 3.30000] 2
45+
46+
-- !sql --
47+
[1.10000000, 2.20000000, 3.30000000] 2
48+
49+
-- !sql --
50+
["2021-01-01", "2021-01-02", "2021-01-03"] 2
51+
52+
-- !sql --
53+
["2021-01-01 00:00:00", "2021-01-02 00:00:00", "2021-01-03 00:00:00"] 2
54+
55+
-- !sql --
56+
["192.168.1.1", "192.168.1.2", "192.168.1.3"] 2
57+
58+
-- !sql --
59+
["2001:db8:85a3::8a2e:370:7334", "2001:db8:85a3::8a2e:370:7334"] 2
60+
61+
-- !sql --
62+
["hello", "1"]
63+
["world", "2"]
64+
["hello", "3"]
65+
66+
-- !sql --
67+
\N hello world \N
68+
\N hello world \N
69+
\N hello world \N
70+
71+
-- !sql --
72+
\N hello world \N
73+
\N hello world \N
74+
\N hello world \N
75+
76+
-- !sql_inv --
77+
1
78+
79+
-- !sql --
80+
2
81+
82+
-- !sql --
83+
2 cd
84+
2 cd
85+
86+
-- !sql --
87+
{"key1":1} {"key2":2}
88+
{"key1":1} {"key2":2}
89+
90+
-- !sql --
91+
{"id":1, "name":"John"} {"id":2, "name":"Jane"}
92+
{"id":1, "name":"John"} {"id":2, "name":"Jane"}
93+
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
-- This file is automatically generated. You should know what you did if you want to edit this
2+
-- !sql --
3+
1 {"key1":1, "key2":2} {"key1":"value1", "key2":"value2"} {"key1":1, "key2":0} {"key1":1, "key2":2} {"key1":1, "key2":2} {"key1":1, "key2":2} {"key1":1, "key2":2} {"key1":1.1, "key2":2.2} {"key1":1.1, "key2":2.2} {"key1":1.10, "key2":2.20} {"key1":1.100, "key2":2.200} {"key1":1.10000, "key2":2.20000} {"key1":1.10000000, "key2":2.20000000} {"key1":"2021-01-01", "key2":"2021-01-02"} {"key1":"2021-01-01 00:00:00", "key2":"2021-01-02 00:00:00"} {"key1":"192.168.1.1", "key2":"192.168.1.2"} {"key1":"::1", "key2":"::2"} {"key1":[1, 2, 3], "key2":[4, 5, 6]} {"key1":{"id":1, "name":"John"}, "key2":{"id":2, "name":"Jane"}} {"key1":{"nested_key1":1}, "key2":{"nested_key2":2}} {"key1":"1234567890", "key2":"1234567890"} {"key1":"1234567890", "key2":"1234567890"}
4+
5+
-- !sql --
6+
1 {1:"value1", 0:"value2"} {1:"value1", 2:"value2"} {1:"value1", 2:"value2"} {1:"value1", 2:"value2"} {1:"value1", 2:"value2"} {1.1:"value1", 2.2:"value2"} {1.1:"value1", 2.2:"value2"} {1.10:"value1", 2.20:"value2"} {1.100:"value1", 2.200:"value2"} {1.10000:"value1", 2.20000:"value2"} {1.10000000:"value1", 2.20000000:"value2"} {"2021-01-01":"value1", "2021-01-02":"value2"} {"2021-01-01 00:00:00":"value1", "2021-01-02 00:00:00":"value2"} {"192.168.1.1":"value1", "192.168.1.2":"value2"} {"::1":"value1", "::2":"value2"}
7+
8+
-- !sql --
9+
{"key1":"1", "key2":"2"}
10+
11+
-- !sql --
12+
{"key1":1, "key2":2}
13+
14+
-- !sql --
15+
value1 value2 \N
16+
value1 value2 \N
17+
value1 value2 \N
18+
19+
-- !sql --
20+
value1
21+
value1
22+
value1
23+
24+
-- !sql --
25+
{"Alice":21, "Bob":23}
26+
27+
-- !sql --
28+
{"Alice":20}
29+
30+
-- !sql --
31+
20
32+
33+
-- !sql --
34+
20
35+
36+
-- !sql --
37+
0
38+
39+
-- !sql --
40+
1
41+
1
42+
43+
-- !sql --
44+
1
45+
4
46+
47+
-- !sql --
48+
1 John
49+
50+
-- !sql --
51+
k int No true \N
52+
map_varchar_int map<varchar(20),int> Yes false \N NONE
53+
map_int_varchar map<int,varchar(20)> Yes false \N NONE
54+
map_varchar_varchar map<varchar(20),varchar(20)> Yes false \N NONE
55+
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
-- This file is automatically generated. You should know what you did if you want to edit this
2+
-- !sql --
3+
1 {"id":1, "name":"John"} {"name":"Alice", "active":1} {"tinyint_col":1, "smallint_col":2, "bigint_col":3, "largeint_col":4} {"float_col":1.1, "double_col":2.2} {"decimal32_col":1.10, "decimal64_col":2.200, "decimal128_col":3.30000, "decimal256_col":4.40000000} {"date_col":"2021-01-01", "datetime_col":"2021-01-01 00:00:00"} {"ipv4_col":"192.168.1.1", "ipv6_col":"::1"} {"id":1, "tags":["tag1", "tag2"]} {"id":1, "attributes":{"key1":1, "key2":2}} {"person":{"name":"John", "age":25}, "address":{"city":"New York", "zip":10001}} {"char_col":"1234567890", "varchar_col":"1234567890"}
4+
5+
-- !sql --
6+
1 {"bool_col":1, "tinyint_col":1, "smallint_col":2, "int_col":3, "bigint_col":4, "largeint_col":5, "float_col":1.1, "double_col":2.2, "decimal32_col":3.30, "decimal64_col":4.400, "decimal128_col":5.50000, "decimal256_col":6.60000000, "string_col":"test", "date_col":"2021-01-01", "datetime_col":"2021-01-01 00:00:00", "ipv4_col":"192.168.1.1", "ipv6_col":"::1"}
7+
8+
-- !sql --
9+
{"id":1, "name":"John"}
10+
11+
-- !sql --
12+
{"id":1, "name":"John"}
13+
14+
-- !sql --
15+
1 John 1 John
16+
2 Jane 2 Jane
17+
3 Bob 3 Bob
18+
19+
-- !sql --
20+
1 John
21+
2 Jane
22+
3 Bob
23+
24+
-- !sql --
25+
{"col1":1, "col2":"Alice", "col3":1}
26+
27+
-- !sql --
28+
{"col1":1, "col2":"Alice", "col3":1}
29+
30+
-- !sql --
31+
1
32+
33+
-- !sql --
34+
Alice
35+
36+
-- !sql --
37+
John New York
38+
Jane Los Angeles
39+
40+
-- !sql --
41+
1 ["tag1", "tag2", "tag3"]
42+
2 ["tag4", "tag5"]
43+
44+
-- !sql --
45+
1 {"key1":1, "key2":2}
46+
47+
-- !sql --
48+
k int No true \N
49+
struct_varchar struct<name:varchar(20),age:int> Yes false \N NONE
50+
51+
-- !sql --
52+
John john@example.com 100
53+
54+
-- !sql --
55+
k int No true \N
56+
struct_varchar struct<name:varchar(10),age:int,id:int> Yes false \N NONE
57+

0 commit comments

Comments
 (0)