You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "sdf-jkl (via GitHub)" <gi...@apache.org> on 2026/08/28 19:54:17 UTC

[I] [Variant] `variant_to_arrow` union builder does not preserve `variant_get` conversion semantics [arrow-rs]

sdf-jkl opened a new issue, #10905:
URL: https://github.com/apache/arrow-rs/issues/10905

   Here we use type-based info to determine which target the current variant should belong to. This seems incorrect
   1. Variant::Int64(1) can't convert to DataType::Int8, but this should valid when calling `variant_get`
   2. The logic in the current code (json -> variant, and variant spec), treats the exact number the same in Variant::Int64/Int32/Int16 etc(value has no strict type in variant) (like the `Equivalence Class` in parquet variant spec)
   
   _Originally posted by @klion26 in https://github.com/apache/arrow-rs/pull/10313#discussion_r3841121078_
               


-- 
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