scovich opened a new issue, #8435:
URL: https://github.com/apache/arrow-rs/issues/8435

   **Describe the bug**
   
   Currently, variant code is quite willing to support non-variant types such 
as unsigned integers -- including on the read path for shredded variants in 
e.g. `VariantArray::value` (see the 
[typed_value_to_variant](https://github.com/apache/arrow-rs/blob/main/parquet-variant-compute/src/variant_array.rs#L846-L857)
 helper function). 
   
   I don't know if the shredding spec specifically rejects shredding as 
non-variant types, but there is a certain logic to the idea. And case 127 of 
[parquet-testing/shredded_variant](https://github.com/apache/parquet-testing/blob/master/shredded_variant/cases.json#L754-L757)
 specifically verifies that the reader rejects a `typed_value` column of 
(parquet) type `INTEGER(32, false)`.
   
   **To Reproduce**
   
   Found while making changes related to shredded struct support; running case 
127 stopped erroring out with the "expected message ("received empty bytes") 
and started succeeding.
   
   **Expected behavior**
   
   The read should fail.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to