chunweilei commented on a change in pull request #1837: [CALCITE-3835] 
Overloaded table functions fail with an assertion error if param types differ
URL: https://github.com/apache/calcite/pull/1837#discussion_r399008307
 
 

 ##########
 File path: core/src/test/java/org/apache/calcite/util/Smalls.java
 ##########
 @@ -843,6 +843,30 @@ private void abc(StringBuilder sb, Object s) {
     }
   }
 
+  /** User-defined table-macro function with named and optional parameters. */
+  public static class AnotherTableMacroFunctionWithNamedParameters {
+    public TranslatableTable eval(
+        @Parameter(name = "R", optional = true) String r,
+        @Parameter(name = "S") String s,
+        @Parameter(name = "T", optional = true) Integer t,
+        @Parameter(name = "S2", optional = true) String s2) {
+      final StringBuilder sb = new StringBuilder();
+      abc(sb, r);
+      abc(sb, s);
+      abc(sb, t);
 
 Review comment:
   How can we resolve "View\"(r=>'6', s=>'5')) since both 
`TableMacroFunctionWithNamedParameters`
    and `AnotherTableMacroFunctionWithNamedParameters` match?

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to