You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "thinkharderdev (via GitHub)" <gi...@apache.org> on 2024/05/17 14:23:27 UTC

[I] ScalarValue serialization does not handle nested dictionary values [datafusion]

thinkharderdev opened a new issue, #10562:
URL: https://github.com/apache/datafusion/issues/10562

   ### Describe the bug
   
   When serializing a nested `ScalarValue` (eg `Struct\List\etc`) we use arrow IPC format to serialized the nested data. But the logic for IPC encoding/decoding assumes no dictionaries. If a ScalarValue is serialized that contains a dictionary field then it will encode fine but then fail to decode. 
   
   Also, in a couple places with the decoding logic we `unwrap` parsed `PhysicalExpr` which means the dictionary issue comes up it manifests as a panic instead of an error. 
   
   ### To Reproduce
   
   Will push PR to fix shortly with reproducers
   
   ### Expected behavior
   
   We should be able to serialize/deserialize scalar values with nested dictionaries. And if we don't we should error out instead of panicking. 
   
   ### Additional context
   
   _No response_


-- 
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@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] ScalarValue serialization does not handle nested dictionary values [datafusion]

Posted by "thinkharderdev (via GitHub)" <gi...@apache.org>.
thinkharderdev closed issue #10562: ScalarValue serialization does not handle nested dictionary values
URL: https://github.com/apache/datafusion/issues/10562


-- 
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@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org