Github user sudheeshkatkam commented on a diff in the pull request:

    https://github.com/apache/drill/pull/377#discussion_r53543104
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/expr/annotations/FunctionTemplate.java
 ---
    @@ -55,12 +55,19 @@
     
       FunctionScope scope();
       NullHandling nulls() default NullHandling.INTERNAL;
    +
    +  /**
    +   * This method tells if the number of argument(s) for a function is 
FIXED or VARIABLE. Since most functions expect
    +   * receiving fixed number of argument(s), the default value is FIXED.
    +   */
    +  FunctionArgumentNumber argNumber() default FunctionArgumentNumber.FIXED;
    --- End diff --
    
    As a user, I do not see how setting argNumber to VARIABLE is conveying any 
meaning to Drill, since we do not support specifying variable number of 
arguments using Param annotation.
    
    If the problem is with _concat_, maybe we should have special handling for 
certain functions, while registering in DrillFunctionRegistry, rather than 
through ScanResult?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to