Commit 1a169cd
authored
Fix
# Which issue does this PR close?
- closes #9593
# Rationale for this change
In a previous PR (#9593), I change instances of `truncate(0)` to
`clear()`. However, this breaks the test `test_truncate_with_pool` at
`arrow-buffer/src/buffer/mutable.rs:1357`, due to an inconsistency
between the implementation of `truncate` and `clear`. This PR fixes that
test.
# What changes are included in this PR?
This PR copies a section of code related to the `pool` feature present
in `truncate` but absent in `clear`, fixing the failing unit test.
# Are these changes tested?
Yes.
# Are there any user-facing changes?
No.MutableBuffer::clear (#9622)1 parent 77e4d05 commit 1a169cd
File tree
3 files changed
+11
-5
lines changed- arrow-buffer/src/buffer
- arrow-json/src/reader
- parquet/tests
3 files changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
454 | 460 | | |
455 | 461 | | |
456 | 462 | | |
| |||
1371 | 1377 | | |
1372 | 1378 | | |
1373 | 1379 | | |
1374 | | - | |
| 1380 | + | |
1375 | 1381 | | |
1376 | 1382 | | |
1377 | 1383 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | | - | |
384 | | - | |
| 383 | + | |
| 384 | + | |
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| |||
0 commit comments