You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "bert-beyondloops (via GitHub)" <gi...@apache.org> on 2026/05/21 11:48:28 UTC

Re: [I] `ScalarValue::try_from_array` holds onto input array for Struct, Lists types [datafusion]

bert-beyondloops commented on issue #15205:
URL: https://github.com/apache/datafusion/issues/15205#issuecomment-4507914367

   I personally would go for the fix behind the compact() functionality on ScalarValue
   
   See https://github.com/apache/datafusion/issues/21928
   
   In this way, the developer still has the option to just use the `ScalarValue::try_from_array` _as is_ without any side effects of recopying memory and possible performance impact.
   
   If reducing memory footprint is really needed, a compact() call can be made explicitly.
   


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