Commit 75d49e6
fix: address third round of reviewer feedback
- BlobReference.writeString now rejects strings longer than 65535 UTF-8
bytes instead of silently truncating the 2-byte length prefix, which
would produce a wrong-but-decodable reference.
- Scope BlobReferenceResolver per finish() call with explicit close so
cached Datasets release JNI handles each batch instead of leaking for
the writer's lifetime.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 439cc44 commit 75d49e6
2 files changed
Lines changed: 14 additions & 4 deletions
File tree
- lance-spark-base_2.12/src/main
- java/org/lance/spark/utils
- scala/org/lance/spark/arrow
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
136 | 142 | | |
137 | 143 | | |
138 | 144 | | |
| |||
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
321 | | - | |
322 | 320 | | |
323 | 321 | | |
324 | 322 | | |
| |||
337 | 335 | | |
338 | 336 | | |
339 | 337 | | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
340 | 341 | | |
341 | 342 | | |
342 | 343 | | |
343 | 344 | | |
344 | 345 | | |
345 | 346 | | |
346 | | - | |
347 | | - | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
348 | 352 | | |
349 | 353 | | |
350 | 354 | | |
| |||
0 commit comments