Commit 4cb784a
Fix using the shared/global connection in IntegrationTestUtil (#494)
All the integration test use the static `Connection` object in `IntegrationTestUtil` to execute query. There are 2 issues
- TestUtil should not have any static mutable member
- The connection member will be overwritten by lots of the test and will result corrupted state
We should pass the connection object as the argument of the execute API in the util.
Fix stub mappings
---------
Co-authored-by: Jayant Singh <[email protected]>1 parent 336e2a1 commit 4cb784a
File tree
617 files changed
+7515
-8733
lines changed- src/test
- java/com/databricks/jdbc/integration
- e2e
- fakeservice
- tests
- resources
- __files
- cloudfetchapi
- concurrencyintegrationtests
- testconcurrentreads/mappings
- testconcurrentupdates/mappings
- errorhandlingintegrationtests/testaccessingclosedresultset/mappings
- executionintegrationtests
- testcomplexqueryjoins/mappings
- testcomplexquerysubqueries/mappings
- testcompoundstatements/mappings
- testdeletestatement/mappings
- testinsertstatement/mappings
- testupdatestatement/mappings
- metadataintegrationtests/testresultsetmetadataretrieval/mappings
- multichunkexecutionintegrationtests/testmultichunkselect/mappings
- preparedstatementintegrationtests
- testhandlingnullvalueswithpreparedstatement/mappings
- testparameterbindinginpreparedstatement/mappings
- testpreparedstatementcomplexqueryexecution/mappings
- testpreparedstatementexecution/mappings
- resultsetintegrationtests
- testhandlingnullvalues/mappings
- testretrievalofbasicdatatypes/mappings
- testretrievalofcomplexdatatypes/mappings
- cloudfetchsqlgatewayapi/multichunkexecutionintegrationtests/testmultichunkselect/mappings
- sqlexecapi
- concurrencyintegrationtests
- testconcurrentreads/mappings
- testconcurrentupdates/mappings
- connectionintegrationtests
- testincorrectcredentialsforoauth/mappings
- testincorrectcredentialsforpat/mappings
- testsuccessfulconnection/mappings
- errorhandlingintegrationtests
- testaccessingclosedresultset/mappings
- testcallingunsupportedsqlfeature/mappings
- testfailuretoloaddriver/mappings
- testinvalidhostname/mappings
- testinvalidurl/mappings
- testquerysyntaxerror/mappings
- executionintegrationtests
- testcomplexqueryjoins/mappings
- testcomplexquerysubqueries/mappings
- testcompoundstatements/mappings
- testdeletestatement/mappings
- testinsertstatement/mappings
- testupdatestatement/mappings
- metadataintegrationtests
- testcatalogandschemainformation/mappings
- testdatabasemetadataretrieval/mappings
- testresultsetmetadataretrieval/mappings
- multichunkexecutionintegrationtests/testmultichunkselect/mappings
- preparedstatementintegrationtests
- testhandlingnullvalueswithpreparedstatement/mappings
- testparameterbindinginpreparedstatement/mappings
- testpreparedstatementcomplexqueryexecution/mappings
- testpreparedstatementexecution/mappings
- resultsetintegrationtests
- testhandlingnullvalues/mappings
- testretrievalofbasicdatatypes/mappings
- testretrievalofcomplexdatatypes/mappings
- sqlgatewayapi
- errorhandlingintegrationtests
- testaccessingclosedresultset/mappings
- testcallingunsupportedsqlfeature/mappings
- testquerysyntaxerror/mappings
- executionintegrationtests
- testcomplexqueryjoins/mappings
- testcomplexquerysubqueries/mappings
- testcompoundstatements/mappings
- testdeletestatement/mappings
- testinsertstatement/mappings
- testupdatestatement/mappings
- metadataintegrationtests
- testcatalogandschemainformation/mappings
- testdatabasemetadataretrieval/mappings
- testresultsetmetadataretrieval/mappings
- multichunkexecutionintegrationtests/testmultichunkselect/mappings
- resultsetintegrationtests
- testhandlingnullvalues/mappings
- testretrievalofbasicdatatypes/mappings
- testretrievalofcomplexdatatypes/mappings
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
617 files changed
+7515
-8733
lines changedLines changed: 20 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| |||
166 | 164 | | |
167 | 165 | | |
168 | 166 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | 167 | | |
174 | 168 | | |
175 | 169 | | |
| |||
213 | 207 | | |
214 | 208 | | |
215 | 209 | | |
216 | | - | |
| 210 | + | |
217 | 211 | | |
218 | | - | |
219 | | - | |
| 212 | + | |
220 | 213 | | |
221 | 214 | | |
222 | 215 | | |
223 | 216 | | |
224 | 217 | | |
225 | 218 | | |
226 | 219 | | |
227 | | - | |
| 220 | + | |
228 | 221 | | |
229 | | - | |
230 | | - | |
| 222 | + | |
231 | 223 | | |
232 | 224 | | |
233 | 225 | | |
234 | 226 | | |
235 | 227 | | |
236 | 228 | | |
237 | 229 | | |
238 | | - | |
| 230 | + | |
239 | 231 | | |
240 | | - | |
| 232 | + | |
241 | 233 | | |
242 | 234 | | |
243 | 235 | | |
244 | 236 | | |
245 | 237 | | |
246 | 238 | | |
247 | | - | |
| 239 | + | |
248 | 240 | | |
249 | 241 | | |
250 | | - | |
| 242 | + | |
| 243 | + | |
251 | 244 | | |
252 | 245 | | |
253 | | - | |
254 | | - | |
| 246 | + | |
| 247 | + | |
255 | 248 | | |
256 | 249 | | |
257 | | - | |
| 250 | + | |
258 | 251 | | |
259 | | - | |
| 252 | + | |
260 | 253 | | |
261 | 254 | | |
262 | 255 | | |
263 | 256 | | |
264 | 257 | | |
265 | 258 | | |
266 | | - | |
| 259 | + | |
267 | 260 | | |
268 | 261 | | |
269 | 262 | | |
270 | 263 | | |
271 | 264 | | |
272 | | - | |
| 265 | + | |
273 | 266 | | |
274 | 267 | | |
275 | 268 | | |
276 | 269 | | |
277 | 270 | | |
278 | | - | |
| 271 | + | |
279 | 272 | | |
280 | 273 | | |
281 | 274 | | |
282 | 275 | | |
283 | 276 | | |
284 | 277 | | |
285 | | - | |
| 278 | + | |
286 | 279 | | |
287 | 280 | | |
288 | 281 | | |
289 | 282 | | |
290 | 283 | | |
291 | | - | |
| 284 | + | |
292 | 285 | | |
293 | 286 | | |
294 | | - | |
| 287 | + | |
295 | 288 | | |
296 | 289 | | |
297 | 290 | | |
298 | 291 | | |
299 | | - | |
| 292 | + | |
300 | 293 | | |
301 | 294 | | |
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
13 | 30 | | |
14 | 31 | | |
15 | 32 | | |
16 | | - | |
| 33 | + | |
17 | 34 | | |
18 | 35 | | |
19 | 36 | | |
| |||
36 | 53 | | |
37 | 54 | | |
38 | 55 | | |
39 | | - | |
| 56 | + | |
40 | 57 | | |
41 | 58 | | |
42 | 59 | | |
| |||
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
Lines changed: 30 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
52 | | - | |
| 54 | + | |
53 | 55 | | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
60 | | - | |
61 | | - | |
62 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
63 | 66 | | |
64 | | - | |
| 67 | + | |
65 | 68 | | |
| 69 | + | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
| |||
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
74 | | - | |
75 | | - | |
76 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
77 | 81 | | |
| 82 | + | |
78 | 83 | | |
79 | 84 | | |
80 | 85 | | |
| |||
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
| 93 | + | |
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
| |||
110 | 116 | | |
111 | 117 | | |
112 | 118 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
118 | 124 | | |
119 | 125 | | |
120 | | - | |
121 | | - | |
122 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
123 | 129 | | |
124 | 130 | | |
125 | | - | |
126 | | - | |
| 131 | + | |
| 132 | + | |
127 | 133 | | |
128 | 134 | | |
129 | 135 | | |
| |||
138 | 144 | | |
139 | 145 | | |
140 | 146 | | |
141 | | - | |
| 147 | + | |
142 | 148 | | |
143 | 149 | | |
144 | 150 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
162 | 161 | | |
163 | 162 | | |
164 | 163 | | |
165 | | - | |
166 | 164 | | |
167 | 165 | | |
168 | 166 | | |
| |||
182 | 180 | | |
183 | 181 | | |
184 | 182 | | |
185 | | - | |
186 | 183 | | |
187 | 184 | | |
188 | 185 | | |
| |||
0 commit comments