KKcorps opened a new issue #8236:
URL: https://github.com/apache/pinot/issues/8236
Currently, functions annotated with `@ScalarFunction` annotation take the
name of the java method as the Query function name OR you can provide an
alternative name.
But there are scenarios, where we may need multiple names for the same
function to support third-party tools such as Tableau, Looker etc. . e.g.
(CEIL, CEILING), (LOGN, LN) etc.
Currently we can do this by copying the method and just changing the name
but that is not a good approach. We should make a small change in the
Annotation Processor so that we can specify alternate names as part of
annotation itself.
Suggested Changes -
```
@ScalarFunction(names = {"ceil", "ceiling"})
public static double ceil(double a) {
return Math.ceil(a);
}
```
--
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]