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 2022/02/21 08:19:05 UTC
[GitHub] [pinot] KKcorps opened a new issue #8236: Scalar Functions should be able to support multiple names
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: 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
[GitHub] [pinot] xiangfu0 closed issue #8236: Scalar Functions should be able to support multiple names
Posted by GitBox <gi...@apache.org>.
xiangfu0 closed issue #8236:
URL: https://github.com/apache/pinot/issues/8236
--
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
[GitHub] [pinot] xiangfu0 commented on issue #8236: Scalar Functions should be able to support multiple names
Posted by GitBox <gi...@apache.org>.
xiangfu0 commented on issue #8236:
URL: https://github.com/apache/pinot/issues/8236#issuecomment-1048330297
+1
--
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