Closed GoogleCodeExporter closed 9 years ago
[tuple format correction]
In the tuple format, instead of having the start offsets of each field, end
offsets of each field are stored.
Original comment by kiss...@gmail.com
on 24 Sep 2014 at 6:04
Actually, the statement ("The reason why this happens is attributed to the fact
that those comparators are implemented in hyracks level.") is not correct.
Regardless of the fact that where the comparators are implemented, the caller
who creates the comparators should take care of the type tag. So, the "option
1" is not an option to fix this issue.
Original comment by kiss...@gmail.com
on 24 Sep 2014 at 6:15
Isn't the field type tag only written for variable length entries? Since
neither int nor double are variable length types, their
ITypeTraits.isFixedLength() should be false, causing the
RTreeTypeAwareTupleWriter to not write the field length.
Thus, based on the source code, I believe this is not an issue. If this is
correct, I still agree that we should put down that implicit assumption
somewhere - probably as an assertion in the ILinearizeComparators.
Original comment by mdrese...@googlemail.com
on 24 Sep 2014 at 9:18
Currently, regardless of the field type, the type tag is written. Also, whether
a field is of variable length or not doesn't matter in keeping the type tag.
Original comment by kiss...@gmail.com
on 24 Sep 2014 at 9:29
Could you point me to where it's written?
Original comment by mdrese...@googlemail.com
on 24 Sep 2014 at 9:32
You can take a look at AqlSerializerDeserializerProvider.java.
Especially, you can read "addTag()" function in it.
Original comment by kiss...@gmail.com
on 24 Sep 2014 at 10:48
Ah, ok. I think I got it. So this is a problem that appears only when passing
Asterix frames (i.e., IAObjects) down to the comparators. If we use
RTreeNSMFrames, this is different and we must not expect the tag.
My gut feeling is that the comparator shouldn't know about the existence of
different types of frames. Instead, the frames should have a method that
returns the value at position x.
Original comment by mdrese...@googlemail.com
on 24 Sep 2014 at 11:07
Original comment by kiss...@gmail.com
on 29 Sep 2014 at 5:02
Original issue reported on code.google.com by
kiss...@gmail.com
on 24 Sep 2014 at 6:02