Commit c5a757c
authored
[PECOBLR-860] Bugfix : volume operation (#984)
## Description
- The bug
- Current JDBC Repo has a bug, in which volume operations are not
executed.
- Step to reproduce : use a script to generate a large csv file (say
1.5GB), execute the PUT query - you won't be able to see the file
uploaded.
- The customer would have to iterate through the resultSet for the
volume operation to be completed. This is the workaround customers can
use as of today :
```
ResultSet rs = con.createStatement()
.executeQuery(
"PUT 'test_csv_files/large_file.csv' INTO '/Volumes/testingcatalog/default/testvol/mytestfolder/test1'");
while(rs.next()){
//Nothing
}
```
- This PR fixes the above issue without the need of any hacky fix.
## Testing
- Tested locally
## Additional Notes to the Reviewer
- This needs to be added to the JDK8 branch as well, will raise a PR for
the same1 parent f28c9a6 commit c5a757c
3 files changed
Lines changed: 94 additions & 160 deletions
File tree
- src
- main/java/com/databricks/jdbc/api/impl/volume
- test/java/com/databricks/jdbc/api/impl/volume
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
Lines changed: 23 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
68 | | - | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
| |||
181 | 185 | | |
182 | 186 | | |
183 | 187 | | |
184 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
185 | 194 | | |
186 | 195 | | |
187 | 196 | | |
| |||
193 | 202 | | |
194 | 203 | | |
195 | 204 | | |
196 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
197 | 215 | | |
198 | 216 | | |
199 | 217 | | |
200 | 218 | | |
201 | 219 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | 220 | | |
207 | 221 | | |
208 | 222 | | |
| |||
217 | 231 | | |
218 | 232 | | |
219 | 233 | | |
220 | | - | |
| 234 | + | |
221 | 235 | | |
222 | 236 | | |
223 | 237 | | |
| |||
0 commit comments