Skip to content

Commit 565ff39

Browse files
authored
[regression](load) add some p0 case for load strict mode (#62478)
1 parent 4e81ace commit 565ff39

File tree

6 files changed

+603
-23
lines changed

6 files changed

+603
-23
lines changed

regression-test/data/load_p0/insert/test_insert_strict_mode_and_filter_ratio.out

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,119 @@
9090

9191
-- !sql_mb_string_exceed_len_strict0 --
9292

93+
-- !insert_select_string_exceed_len_non_strict0_src --
94+
1 a1
95+
20 a20
96+
30 a30
97+
59 a59
98+
60 a60
99+
70 a70
100+
79 a79
101+
81 a1234567890
102+
91 a9234567890
103+
100 a10234567890
104+
105+
-- !insert_select_string_exceed_len_non_strict0_dst --
106+
1 a1
107+
20 a20
108+
30 a30
109+
59 a59
110+
60 a60
111+
70 a70
112+
79 a79
113+
81 a123456789
114+
91 a923456789
115+
100 a102345678
116+
117+
-- !insert_select_string_exceed_len_strict1_dst --
118+
119+
-- !insert_select_number_overflow_non_strict_src --
120+
1234567890
121+
1234567891
122+
1234567892
123+
1234567893
124+
1234567894
125+
1234567895
126+
1234567896
127+
12345678902
128+
12345678903
129+
12345678971
130+
131+
-- !insert_select_number_overflow_non_strict_dst --
132+
\N
133+
\N
134+
\N
135+
1234567890
136+
1234567891
137+
1234567892
138+
1234567893
139+
1234567894
140+
1234567895
141+
1234567896
142+
143+
-- !insert_select_number_overflow_strict0_dst --
144+
145+
-- !insert_select_non_number_to_number_non_strict_dst --
146+
\N
147+
\N
148+
\N
149+
1234567890
150+
1234567890
151+
1234567893
152+
1234567894
153+
1234567895
154+
1234567896
155+
1234567897
156+
157+
-- !insert_select_non_number_to_number_strict_dst --
158+
159+
-- !insert_select_null_into_not_null_non_strict_src --
160+
\N
161+
\N
162+
\N
163+
1234567890
164+
1234567891
165+
1234567892
166+
1234567893
167+
1234567894
168+
1234567895
169+
1234567896
170+
171+
-- !insert_select_null_into_not_null_non_strict_dst0 --
172+
173+
-- !insert_select_null_into_not_null_non_strict_dst1 --
174+
1234567890
175+
1234567891
176+
1234567892
177+
1234567893
178+
1234567894
179+
1234567895
180+
1234567896
181+
182+
-- !insert_select_null_into_not_null_strict_dst0 --
183+
184+
-- !insert_select_no_partition_src --
185+
1 a1
186+
20 a20
187+
30 a30
188+
59 a59
189+
60 a60
190+
70 a70
191+
79 a79
192+
81 a81
193+
91 a91
194+
100 a100
195+
196+
-- !insert_select_no_partition_non_strict_dst0 --
197+
198+
-- !insert_select_no_partition_non_strict_dst1 --
199+
1 a1
200+
20 a20
201+
30 a30
202+
59 a59
203+
60 a60
204+
70 a70
205+
79 a79
206+
207+
-- !insert_select_no_partition_strict_dst0 --
208+

regression-test/data/load_p0/stream_load/test_stream_load_strict_mode_and_filter_ratio.out

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,27 @@
11
-- This file is automatically generated. You should know what you did if you want to edit this
2+
-- !sql_int_overflow_non_strict --
3+
\N
4+
\N
5+
\N
6+
1
7+
2
8+
3
9+
4
10+
5
11+
6
12+
7
13+
14+
-- !sql_tinyint_overflow_strict0 --
15+
1
16+
2
17+
3
18+
4
19+
5
20+
6
21+
7
22+
23+
-- !sql_tinyint_overflow_strict1 --
24+
225
-- !sql_number_overflow_non_strict --
326
\N
427
\N
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
1
2+
2
3+
3
4+
4
5+
5
6+
6
7+
7
8+
128
9+
129
10+
-129

0 commit comments

Comments
 (0)