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 2019/10/31 12:30:38 UTC
[GitHub] [calcite] yanlin-Lynn commented on a change in pull request #1547:
[CALCITE-3460] Poor performance in RexReplacer for large queries
yanlin-Lynn commented on a change in pull request #1547: [CALCITE-3460] Poor performance in RexReplacer for large queries
URL: https://github.com/apache/calcite/pull/1547#discussion_r341109423
##########
File path: core/src/main/java/org/apache/calcite/rel/rules/ReduceExpressionsRule.java
##########
@@ -868,8 +872,8 @@ protected static RexNode substitute(RexCall call, int ordinal, RexNode node) {
}
private RexNode visit(final RexNode call) {
- int i = reducibleExps.indexOf(call);
- if (i == -1) {
+ Integer i = reducibleExpsMap.get(call);
+ if (i == null) {
return null;
}
RexNode replacement = reducedValues.get(i);
Review comment:
+1, better to update it too.
----------------------------------------------------------------
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