asolimando commented on issue #21307:
URL: https://github.com/apache/datafusion/issues/21307#issuecomment-4209712339

   @friendlymatthew, this is exactly the use case #21122 (ExpressionAnalyzer) 
is designed for: a pluggable chain-of-responsibility for expression-level 
statistics (NDV, min/max, null fraction, selectivity) over any `PhysicalExpr`.
   
   Users implement `ExpressionAnalyzer` for their functions and register it via 
`SessionState`, it's more general than `output_statistics` on `ScalarUdfImpl` 
since it handles composed expressions and doesn't require touching UDF 
implementations.
   
   Happy to elaborate if useful!


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