julianhyde commented on a change in pull request #1449: [CALCITE-3302] 
Implement CLASSIFIER and LAST function for MATCH_RECOG…
URL: https://github.com/apache/calcite/pull/1449#discussion_r323755129
 
 

 ##########
 File path: 
core/src/main/java/org/apache/calcite/adapter/enumerable/RexImpTable.java
 ##########
 @@ -916,6 +915,16 @@ public AggImplementor get(final SqlAggFunction 
aggregation,
     return aggSupplier.get();
   }
 
+  public MatchImplementor get(final SqlMatchFunction function) {
+    final Supplier<? extends MatchImplementor> supplier = mrMap.get(function);
+    if (supplier != null) {
+      return supplier.get();
+    } else {
+      // TODO throw an exception here?
+      return null;
 
 Review comment:
   Or just throw. Someone will log a JIRA case if they hit it. It may be 
impossible to hit. 

----------------------------------------------------------------
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