asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ildar Absalyamov (Code Review)" <>
Subject Change in hyracks[release-0.2.18]: ASTERIXDB-1109: Fixed deletion of records from open secondar...
Date Fri, 06 Nov 2015 19:27:46 GMT
Ildar Absalyamov has posted comments on this change.

Change subject: ASTERIXDB-1109: Fixed deletion of records from open secondary index

Patch Set 3:

File algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/prettyprint/

Line 35:         Map<AbstractLogicalOperator, Boolean> printedOpMap = new HashMap<>();
> What's the purpose of introducing maps here?  It looks only map.put() is ca
I have introduced state to plan printer in order to avoid printing the save parts of the plan
(happens when there are replicate operators). I guess Map is an overkill here, I'll change
it to Set instead. Set will be use to determine whether the operator was already printed or
File algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/rewriter/base/

Line 73:                     new HashMap<AbstractLogicalOperator, Boolean>());
> Why this empty map is need here?
Since printOperator is a static method, the state (the set of operators, which were already
printed) should be passed in when the method is called (initially the set is empty).
File algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/rewriter/base/

Line 68:     private final Map<LogicalVariable, FunctionalDependency> recordToPrimaryKey
= new HashMap<LogicalVariable, FunctionalDependency>();
> recordToPrimaryKey and primaryKeyRecord maps seem tricky, because a rewriti
I agree those recordToPrimaryKey&primaryKeyRecord maps are hackish solution. I'll see
if I can avoid using them alltogether
File algebricks/algebricks-rewriter/src/main/java/org/apache/hyracks/algebricks/rewriter/rules/

Line 584:         PlanPrettyPrinter.printOperator(op, sb, pvisitor, 0, new HashMap<AbstractLogicalOperator,
> Why map is needed here?  The resulting states are never accessed.
See previous explanation

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: Ib2036d2eac4b0a0c6ac2c2e7e1bac383b11106bd
Gerrit-PatchSet: 3
Gerrit-Project: hyracks
Gerrit-Branch: release-0.2.18
Gerrit-Owner: Ildar Absalyamov <>
Gerrit-Reviewer: Ian Maxon <>
Gerrit-Reviewer: Ildar Absalyamov <>
Gerrit-Reviewer: Jenkins <>
Gerrit-Reviewer: Taewoo Kim <>
Gerrit-Reviewer: Yingyi Bu <>
Gerrit-Reviewer: Young-Seok Kim <>
Gerrit-HasComments: Yes

View raw message