Repository navigation
Commit 267c5fb
fix(filter_v2): measure view-typed payloads on pyarrow < 19
The payload size limit read RecordBatch.nbytes, which pyarrow < 19 does not
implement for view types (string_view, binary_view, list_view): a filter
carrying one failed with a raw ArrowTypeError instead of being parsed, or
rejected as FilterV2Error. Fall back to get_total_buffer_size(), which
handles every layout and can only overcount, so the limit still holds; if
neither works, raise FilterV2Error. Verified on pyarrow 18.1.0, where
nbytes raises on both view types and the fallback measures them.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent 22cfe08 commit 267c5fb
2 files changed
Lines changed: 63 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
767 | 768 | | |
768 | 769 | | |
769 | 770 | | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
120 | 148 | | |
121 | 149 | | |
122 | 150 | | |
| |||
592 | 620 | | |
593 | 621 | | |
594 | 622 | | |
595 | | - | |
| 623 | + | |
596 | 624 | | |
597 | 625 | | |
598 | 626 | | |
| |||
0 commit comments