abdullah alamoudi has posted comments on this change.

Change subject: Cast Record Before Insert for Open Indexes
......................................................................


Patch Set 1:

(5 comments)

I think that I have addressed all the comments.
Let me know if I missed anything.

https://asterix-gerrit.ics.uci.edu/#/c/997/1/asterixdb/asterix-external-data/src/main/java/org/apache/asterix/external/feed/dataflow/FeedExceptionHandler.java
File 
asterixdb/asterix-external-data/src/main/java/org/apache/asterix/external/feed/dataflow/FeedExceptionHandler.java:

Line 52:     public ByteBuffer handle(HyracksDataException th, ByteBuffer 
frame) {
> Can we use an integer error code instead of a new Exception type to handle 
Done


https://asterix-gerrit.ics.uci.edu/#/c/997/1/asterixdb/asterix-om/src/main/java/org/apache/asterix/om/pointables/cast/ARecordCaster.java
File 
asterixdb/asterix-om/src/main/java/org/apache/asterix/om/pointables/cast/ARecordCaster.java:

Line 236:                                 "Open field type " + inputTypeTag + " 
can't be promoted to type " + requiredTypeTag);
> "Open field"-> "Field",  the input field could be in the closed part.
Done


https://asterix-gerrit.ics.uci.edu/#/c/997/1/hyracks-fullstack/algebricks/algebricks-rewriter/src/main/java/org/apache/hyracks/algebricks/rewriter/rules/InlineVariablesRule.java
File 
hyracks-fullstack/algebricks/algebricks-rewriter/src/main/java/org/apache/hyracks/algebricks/rewriter/rules/InlineVariablesRule.java:

Line 241:             if (hasInsert && InlineVariablesRule.opIsPostInsert(op)) {
> remove "InlineVariablesRule."
Shouldn't static methods be called using the class name?


Line 299:             return false;
> This doesn't seem right. In that case, we missed the case the operator is a
This was used to check whether one of the parents of this operator is an insert 
operator. In such case, we will never have a join or any operator with two 
parents.

variable names are misleading a bit. anyway, I replaced this logic with the 
better way to stop inlining the variables by calling context add to not inline 
vars.


https://asterix-gerrit.ics.uci.edu/#/c/997/1/hyracks-fullstack/algebricks/algebricks-runtime/src/main/java/org/apache/hyracks/algebricks/runtime/operators/std/AssignRuntimeFactory.java
File 
hyracks-fullstack/algebricks/algebricks-runtime/src/main/java/org/apache/hyracks/algebricks/runtime/operators/std/AssignRuntimeFactory.java:

Line 184:                     throw new FrameDataException(t, hde);
> Why any exceptions during assign x:= expr becomes a FormatDataException?   
Done


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I0eef5813ddbfe1b9c518cd7f92d37c95e8486914
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: abdullah alamoudi <bamou...@gmail.com>
Gerrit-Reviewer: Jenkins <jenk...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Till Westmann <ti...@apache.org>
Gerrit-Reviewer: Yingyi Bu <buyin...@gmail.com>
Gerrit-Reviewer: abdullah alamoudi <bamou...@gmail.com>
Gerrit-HasComments: Yes

Reply via email to