You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2025/06/29 11:30:46 UTC
[I] [Variant] Tests for creating "large" `VariantList`s [arrow-rs]
alamb opened a new issue, #7820:
URL: https://github.com/apache/arrow-rs/issues/7820
**Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
- part of https://github.com/apache/arrow-rs/issues/6736
The [Variant](https://github.com/apache/parquet-format/blob/master/VariantEncoding.md#encoding-types) encoding uses different sizes for offsets in nested types to optimize the encoding size
Specifically
* Arrays (`VariantList`) [use 1 byte and 4 bytes for length when the list has <=256 and >256 list elements respectively](https://github.com/apache/parquet-format/blob/master/VariantEncoding.md#value-header-for-array-basic_type3)
* Arrays (`VariantList`) [use 1 byte and 4 bytes for the offset depending on how large the total variant payload size is](https://github.com/apache/parquet-format/blob/master/VariantEncoding.md#value-header-for-array-basic_type3)
* Objects [](https://github.com/apache/parquet-format/blob/master/VariantEncoding.md#value-header-for-object-basic_type2)
**Describe the solution you'd like**
I would like tests that use the `VariantBuilder` API and cover the following cases:
1. `VariantList` with more than 256 elements
2. `VariantList` with total child data length between 2^8 and 2^16 ( `field_offset_size_minus_1` = 1, 2 byte offsets)
2. `VariantList` with total child data length between 2^16 and 2^24 ( `field_offset_size_minus_1` = 2, 3 byte offsets)
2. `VariantList` with total child data length between 2^24 and 2^32 ( `field_offset_size_minus_1` = 3, 4 byte offsets)
**Describe alternatives you've considered**
<!--
A clear and concise description of any alternative solutions or features you've considered.
-->
**Additional context**
<!--
Add any other context or screenshots about the feature request here.
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Variant] Tests for creating "large" `VariantList`s [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #7820:
URL: https://github.com/apache/arrow-rs/issues/7820#issuecomment-3130011277
`label_issue.py` automatically added labels {'parquet'} from #7876
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Variant] Tests for creating "large" `VariantList`s [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #7820: [Variant] Tests for creating "large" `VariantList`s
URL: https://github.com/apache/arrow-rs/issues/7820
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Variant] Tests for creating "large" `VariantList`s [arrow-rs]
Posted by "klion26 (via GitHub)" <gi...@apache.org>.
klion26 commented on issue #7820:
URL: https://github.com/apache/arrow-rs/issues/7820#issuecomment-3032715868
take
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org