asterixdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ildar Absalyamov (Code Review)" <>
Subject Change in asterixdb[master]: Changed metadata storage format for nullable field types. Mo...
Date Fri, 17 Jul 2015 07:48:45 GMT
Ildar Absalyamov has posted comments on this change.

Change subject: Changed metadata storage format for nullable field types. Moved field name
generation to the client out of metadata node code. Changed naming scheme for autogenerated

Patch Set 1:

File asterix-metadata/src/main/java/edu/uci/ics/asterix/metadata/bootstrap/

Line 120:         //                FEED_ACTIVITY_DATASET_ID, true, new int[] { 0, 1, 2, 3
> Is this block supposed to be commented out, still?
File asterix-metadata/src/main/java/edu/uci/ics/asterix/metadata/entitytupletranslators/

Line 148:                 }
> Do we actually want to totally remove UNION type?
We do keep AUnionType since it exists in the runtime. However the enum DerivedTypeTag, which
is used in this switch statement is used to describe only the derived type, which are persisted
in metadata, hence union is removed.

Line 378:         } catch (Exception e) {
> Could you elaborate a little more on this TODO?
Well this comment is inherited from the old writeRecordType method. The exception model is
totally messed up, and not only here. I've tried to resolve it but 1 change lead to whole
bunch of others, I am not sure it's in the context of that change
File asterix-om/src/main/java/edu/uci/ics/asterix/om/typecomputer/impl/

Line 57: 
> What's the reason here for the exception thrown rather than return?
It seems that the only types, which are allowed here are NULL or INT64?
So this code should not be reached anyway. The previous version of the code would have returned
union without nullable type, which is not a valid type. I believe explicitly throwing exception
in this situation (which is not technically possible) is better then returning not valid of
null type
File asterix-om/src/main/java/edu/uci/ics/asterix/om/typecomputer/impl/

Line 71: 
> Same question r.e. exception rather than return

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I223aded8aaf80f0688358899c0e8b0d6988fac93
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ildar Absalyamov <>
Gerrit-Reviewer: Ian Maxon <>
Gerrit-Reviewer: Ildar Absalyamov <>
Gerrit-Reviewer: Jenkins <>
Gerrit-Reviewer: Michael Carey <>
Gerrit-Reviewer: Steven Jacobs <>
Gerrit-HasComments: Yes

View raw message