You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "findepi (via GitHub)" <gi...@apache.org> on 2024/10/09 10:29:11 UTC
Re: [I] Access children `DataType` or return-type in `ScalarUDFImpl::invoke` [datafusion]
findepi commented on issue #12819:
URL: https://github.com/apache/datafusion/issues/12819#issuecomment-2401937768
You may want to implement `ScalarUDFImpl::simplify` which is given nullability info.
From there you'd return a new `ScalarUDFImpl` instance with the nullability information stored on a field.
When the information is already stored, subsequent `simplify` call (if any), should return original expression.
Let me know if it works for your case.
At some point we could probably rename `simplify` to `specialize` cc @alamb
--
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