alamb commented on issue #12819:
URL: https://github.com/apache/datafusion/issues/12819#issuecomment-2435382904

   > I think your proposed solution is?
   
   Yes that is what I was thinking
   
   > I was hoping to use the result of return_type_from_exprs(self, &[Expr], 
&dyn ExprSchema, &[DataType]) (in invoke) since I call 
expr.data_type_and_nullable(schema)? on the inputs to get the correct 
nullability.
   
   
   Ah, I see -- the nullability isn't available from the DataTypes.
   
   Most functions don't use the schema nullability to see if they can use a 
separate fast path but instead use the actual null counts  ont he arrays (e.g 
`Array::null_count` 
https://docs.rs/arrow/latest/arrow/array/trait.Array.html#method.null_count)
   
   I wonder if that would work for your usecase?
   


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

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


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

Reply via email to