You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2021/09/20 20:42:56 UTC

[GitHub] [pinot] Jackie-Jiang commented on issue #7448: Support stateful ScalarFunction

Jackie-Jiang commented on issue #7448:
URL: https://github.com/apache/pinot/issues/7448#issuecomment-923282158


   Great proposal!
   Currently the scalar function class is actually stateful (one instance of class in the `FunctionInvoker`). We do have a test for that (see `InbuiltFunctionEvaluatorTest.testStateSharedBetweenRowsForExecution()`.
   The problem is that we don't have a way to initialize the class. IMO there are 2 approaches:
   1. Add an `init()` method and explicitly invoke it on the caller side
   2. Initialize the class when the scalar function method is called the first time


-- 
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: commits-unsubscribe@pinot.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org