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-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org