Steven Jacobs has posted comments on this change.

Change subject: Equivalence induced operations and the testCases The following 
commits from your working branch will be included: exchange optimization for 
lookup and delete when the search condition is merely composed of the single 
primary key.
......................................................................


Patch Set 13:

(6 comments)

One thing that isn't clear for me: Does this only cover the case where the 
result comes from a single partition, or can it also handle cases where there 
is a subset of partitions to be used.

This change needs tests (both optimizer and runtime).

https://asterix-gerrit.ics.uci.edu/#/c/428/13/asterix-algebra/src/main/java/org/apache/asterix/algebra/operators/physical/BTreeSearchPOperator.java
File 
asterix-algebra/src/main/java/org/apache/asterix/algebra/operators/physical/BTreeSearchPOperator.java:

Line 94:         return isSinglePartition;
It seems like you don't need the boolean variable. You can just check here 
whether partitionId is -1 or not.


https://asterix-gerrit.ics.uci.edu/#/c/428/13/asterix-metadata/src/main/java/org/apache/asterix/metadata/declared/AqlMetadataProvider.java
File 
asterix-metadata/src/main/java/org/apache/asterix/metadata/declared/AqlMetadataProvider.java:

Line 696:                     spPc = 
splitProviderAndPartitionConstraintsForDataset(dataset.getDataverseName(),
should "curIdx != null"


Line 1148:             if (-1 != nodeId)
nodeId != -1


Line 1978:             if (-1 != nodeId)
nodeId != -1


Line 2639:             if (-1 != nodeId)
nodeId != -1


Line 2965:             if (-1 != nodeId)
nodeId != -1


-- 
To view, visit https://asterix-gerrit.ics.uci.edu/428
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Iaad567eecc4c91019ecba56cca085acde34d5196
Gerrit-PatchSet: 13
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Wenhai Li <[email protected]>
Gerrit-Reviewer: Ildar Absalyamov <[email protected]>
Gerrit-Reviewer: Jenkins <[email protected]>
Gerrit-Reviewer: Jianfeng Jia <[email protected]>
Gerrit-Reviewer: Steven Jacobs <[email protected]>
Gerrit-Reviewer: Till Westmann <[email protected]>
Gerrit-Reviewer: Yingyi Bu <[email protected]>
Gerrit-HasComments: Yes

Reply via email to