You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2020/01/14 02:19:16 UTC

[GitHub] [calcite] gr4ve commented on a change in pull request #1405: [CALCITE-2772] Support varargs UDF for scalar function

gr4ve commented on a change in pull request #1405: [CALCITE-2772] Support varargs UDF for scalar function
URL: https://github.com/apache/calcite/pull/1405#discussion_r366124647
 
 

 ##########
 File path: core/src/main/java/org/apache/calcite/schema/impl/ReflectiveFunctionBase.java
 ##########
 @@ -121,12 +121,16 @@ public String getName() {
             }
 
             public RelDataType getType(RelDataTypeFactory typeFactory) {
-              return typeFactory.createJavaType(type);
+              return typeFactory.createJavaType(varArgs ? type.getComponentType() : type);
 
 Review comment:
   fixed

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services