asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Till Westmann (Code Review)" <>
Subject Change in asterixdb[master]: Refactor Active Listeners
Date Mon, 29 Aug 2016 15:20:50 GMT
Till Westmann has posted comments on this change.

Change subject: Refactor Active Listeners

Patch Set 3:

File asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/

Line 87:             if (dataSource instanceof IMutationDataSource) {
It seems that we got something wrong here - we should be able to get enough information from
the data source about its type without using instanceof ...
File asterixdb/asterix-app/src/main/java/org/apache/asterix/app/translator/

Line 1416:                 if (listener.isEntityConnectedToDataset(dataverseName, datasetName))
For indexes it seems that we can ask the metadata manager which indexes are associated with
the dataset. Shouldn't that be similar here? What's the difference?

Line 3113:             if (mdTxnCtx != null) {
How do we get to the place where the ctx is null? Sounds scary ...
File asterixdb/asterix-external-data/src/main/java/org/apache/asterix/external/feed/management/

Line 646:     public boolean isEntityConnectedToDataset(String dataverseName, String datasetName)
Hmm, why is it ok to ignore the dataverse?
File hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/metadata/

Line 35:     public boolean isLeaf();
Hmm, shouldn't the "leaf" property be the property of an operator in the tree? It seems that
that shouldn't be a property of a data source. I'm not completely sure what this property
means - maybe we just need the right name?
File hyracks-fullstack/algebricks/algebricks-rewriter/src/main/java/org/apache/hyracks/algebricks/rewriter/rules/

Line 271:                     if (dataSource.isLeaf()) {
The "leaf" property doesn't seem right here either.

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I260c8608329523f56dc54780d87d796f838505cf
Gerrit-PatchSet: 3
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: abdullah alamoudi <>
Gerrit-Reviewer: Jenkins <>
Gerrit-Reviewer: Till Westmann <>
Gerrit-Reviewer: abdullah alamoudi <>
Gerrit-HasComments: Yes

View raw message