Commit 6be6cba
Support
# Which issue does this PR close?
- Closes #8567.
# Rationale for this change
Add support for Variant::Utf-8, LargeUtf8, Utf8View. This needs to add a
new builder VariantToStringArrowRowBuilder, because LargeUtf8, Utf8View
are not ArrowPritimitiveType's
# What changes are included in this PR?
- Added support for Variant::Utf-8, LargeUtf8, Utf8View by adding a new
enum and builder for utf8 and largeUtf8 and added utf8view to primitive
builder.
- Added a new variable `data_capacity` to
`make_string_variant_to_arrow_row_builder` to support string types.
- Updated the `make_string_variant_to_arrow_row_builder` in
`variant_get` to include the variable.
# Are these changes tested?
Added a variant_get test for utf8 type and created two separate tests
for largeUtf8 and Utf8view because these types can't be shredded.
# Are there any user-facing changes?
No
---------
Co-authored-by: Congxian Qiu <qcx978132955@gmail.com>
Co-authored-by: Ryan Johnson <scovich@users.noreply.github.com>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>variant_to_arrow for utf8 (#8600)1 parent d48bf0d commit 6be6cba
File tree
5 files changed
+134
-7
lines changed- arrow-array/src/builder
- parquet-variant-compute/src
5 files changed
+134
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
351 | 395 | | |
352 | 396 | | |
353 | 397 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
536 | 551 | | |
537 | 552 | | |
538 | 553 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
967 | 967 | | |
968 | 968 | | |
969 | 969 | | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
970 | 980 | | |
971 | 981 | | |
972 | 982 | | |
| |||
1165 | 1175 | | |
1166 | 1176 | | |
1167 | 1177 | | |
1168 | | - | |
| 1178 | + | |
1169 | 1179 | | |
1170 | 1180 | | |
1171 | 1181 | | |
1172 | 1182 | | |
1173 | 1183 | | |
1174 | 1184 | | |
1175 | | - | |
| 1185 | + | |
1176 | 1186 | | |
1177 | 1187 | | |
1178 | 1188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
315 | | - | |
| 314 | + | |
| 315 | + | |
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| |||
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
781 | 802 | | |
782 | 803 | | |
783 | 804 | | |
| |||
801 | 822 | | |
802 | 823 | | |
803 | 824 | | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
804 | 837 | | |
805 | 838 | | |
806 | 839 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
| |||
104 | 108 | | |
105 | 109 | | |
106 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
107 | 114 | | |
108 | 115 | | |
109 | 116 | | |
| |||
134 | 141 | | |
135 | 142 | | |
136 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
137 | 147 | | |
138 | 148 | | |
139 | 149 | | |
| |||
164 | 174 | | |
165 | 175 | | |
166 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
167 | 180 | | |
168 | 181 | | |
169 | 182 | | |
| |||
304 | 317 | | |
305 | 318 | | |
306 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
307 | 325 | | |
308 | 326 | | |
309 | 327 | | |
| |||
451 | 469 | | |
452 | 470 | | |
453 | 471 | | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
454 | 479 | | |
455 | 480 | | |
456 | 481 | | |
| |||
0 commit comments