scovich commented on issue #8922:
URL: https://github.com/apache/arrow-rs/issues/8922#issuecomment-3614447739

   > > Any reason we can't just translate a normal schema tho? DataType::Struct 
-> variant object, DataType::List -> variant array, etc?
   > 
   > I don't understand this proposal. If a user already has a Struct (or data 
that is already is well formed and can be parsed to a Struct via JSON), why 
would they convert it to a Variant 🤔 ?
   > 
   > Maybe the idea is that users would describe the schema the _want_ and then 
parse some JSON and using this shredded schema would handle exceptions 🤔
   
   That was precisely my understanding? I say "I _think_ (or I _want_) data 
with the following schema: `<schema>`" and the helper produces the 
corresponding shredding schema (with `value` and `typed_value` columns etc). 
And then if the variant data don't actually fit the schema, it just lands in 
`value` instead of `typed_value`.


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