Commit 2f96204
# Which issue does this PR close?
- Partial fix for apache/datafusion#17857
# Rationale for this change
These changes add a safer version of `append_value` in `ByteViewBuilder`
that handles panics called `try_append_value`. Datafusions will consume
the API and handle the Result coming back from the function.
# What changes are included in this PR?
# Are these changes tested?
The method is already covered by existing tests.
# Are there any user-facing changes?
No breaking changes, as the original `append_value` method hasn't
changed.
---------
Co-authored-by: Raz Luvaton <16746759+rluvaton@users.noreply.github.com>
Co-authored-by: Matthew Kim <38759997+friendlymatthew@users.noreply.github.com>
Co-authored-by: Jörn Horstmann <git@jhorstmann.net>
1 parent f131b54 commit 2f96204
1 file changed
+30
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
309 | 321 | | |
310 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
311 | 326 | | |
312 | 327 | | |
313 | 328 | | |
314 | 329 | | |
315 | 330 | | |
316 | 331 | | |
317 | | - | |
| 332 | + | |
318 | 333 | | |
319 | 334 | | |
320 | 335 | | |
| |||
339 | 354 | | |
340 | 355 | | |
341 | 356 | | |
342 | | - | |
| 357 | + | |
343 | 358 | | |
344 | 359 | | |
345 | 360 | | |
| |||
356 | 371 | | |
357 | 372 | | |
358 | 373 | | |
| 374 | + | |
359 | 375 | | |
360 | 376 | | |
361 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
362 | 385 | | |
363 | 386 | | |
| 387 | + | |
364 | 388 | | |
365 | | - | |
| 389 | + | |
366 | 390 | | |
367 | 391 | | |
368 | 392 | | |
369 | 393 | | |
| 394 | + | |
| 395 | + | |
370 | 396 | | |
371 | 397 | | |
372 | 398 | | |
| |||
581 | 607 | | |
582 | 608 | | |
583 | 609 | | |
584 | | - | |
585 | 610 | | |
586 | 611 | | |
587 | 612 | | |
| |||
0 commit comments