vdiravka commented on a change in pull request #1528: DRILL-3610: Add TIMESTAMPADD and TIMESTAMPDIFF functions URL: https://github.com/apache/drill/pull/1528#discussion_r232021092
########## File path: exec/java-exec/src/main/codegen/templates/DateIntervalFunctionTemplates/IntervalNumericArithmetic.java ########## @@ -129,20 +129,22 @@ public void eval() { } } - @SuppressWarnings("unused") - @FunctionTemplate(names = {"divide", "div"}, scope = FunctionTemplate.FunctionScope.SIMPLE, nulls=NullHandling.NULL_IF_NULL) - public static class ${intervaltype}${numerictype}DivideFunction implements DrillSimpleFunc { + @SuppressWarnings("unused") + @FunctionTemplate(names = {"divide", "div"<#if numerictype == "Int">, "/int"</#if>}, + scope = FunctionTemplate.FunctionScope.SIMPLE, + nulls = NullHandling.NULL_IF_NULL) Review comment: Is it possible to specify somewhere that `/int` function (unlike `divide` and `div`) is for internal use? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services