>From Glenn Galvizo <[email protected]>: Glenn Galvizo has posted comments on this change. ( https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/12463 )
Change subject: [ASTERIXDB-2929][IDX] More robust array index applicability recognition ...................................................................... Patch Set 4: (4 comments) > Patch Set 3: > > (4 comments) https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/12463/3/asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/am/AbstractIntroduceAccessMethodRule.java File asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/am/AbstractIntroduceAccessMethodRule.java: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/12463/3/asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/am/AbstractIntroduceAccessMethodRule.java@84 PS3, Line 84: private final ArrayIndexStructureMatcher arrayIndexStructureMatcher = new ArrayIndexStructureMatcher(); > can we move this field into AccessMethodAnalysisContext? It might be a better > place for this helper […] Ack https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/12463/3/asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/am/ArrayIndexStructureMatcher.java File asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/am/ArrayIndexStructureMatcher.java: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/12463/3/asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/am/ArrayIndexStructureMatcher.java@48 PS3, Line 48: private boolean isMatchFound = true; > how come 'isMatchFound'= true by default? is this intended? Yes, this is intended (this is a "true" until we find something that doesn't match situation). I changed the name to "isStructureMatched" and added a comment about this in the reset method. https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/12463/3/asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/am/ArrayIndexStructureMatcher.java@87 PS3, Line 87: public void reset(LogicalVariable var, OptimizableOperatorSubTree subTree) { > let's not use "var" as a parameter name. […] Ack https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/12463/3/asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/util/SelectInSubplanBranchCreator.java File asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/util/SelectInSubplanBranchCreator.java: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/12463/3/asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/util/SelectInSubplanBranchCreator.java@304 PS3, Line 304: throw new CompilationException(ErrorCode.COMPILATION_ERROR, workingSubplanRoot.getSourceLocation(), > is this a sanity check? if it's not then can we just exit this rewriting code > without making any cha […] Ack (this gets updated in a later patch for SOME AND EVERY + array indexes). -- To view, visit https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/12463 To unsubscribe, or for help writing mail filters, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Change-Id: I709b74ea72f63eeba12876a05dac508e6a03c4f4 Gerrit-Change-Number: 12463 Gerrit-PatchSet: 4 Gerrit-Owner: Glenn Galvizo <[email protected]> Gerrit-Reviewer: Anon. E. Moose #1000171 Gerrit-Reviewer: Dmitry Lychagin <[email protected]> Gerrit-Reviewer: Glenn Galvizo <[email protected]> Gerrit-Reviewer: Jenkins <[email protected]> Gerrit-Comment-Date: Fri, 30 Jul 2021 18:16:17 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: Dmitry Lychagin <[email protected]> Gerrit-MessageType: comment
