friendlymatthew commented on issue #18717:
URL: https://github.com/apache/datafusion/issues/18717#issuecomment-3542311068

   > Okay no worries. I asked because we currently have the issue that 
`json_column->'intkey' = 123` doesn't work, I think open variant will have the 
same problem?
   
   Hm, I don't think we'll have the same problem with variants. Variant columns 
use a structured representation (`StructArray`). This difference in array 
representation means the access patterns work differently too
   
   The equivalent to `json_column->'intkey'` in variant would be 
`variant_get(json_column, "intkey", Int32)` which directly accesses the variant 
data and casts it to the type you specify (`Int32` in this case)
   
   I _could_ be wrong so cc'ing @alamb @scovich @klion26 @liamzwbao 
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to