Wail Y. Alkowaileet created ASTERIXDB-3214:
----------------------------------------------
Summary: Do not skip non-key columns if anti-matter was
encountered
Key: ASTERIXDB-3214
URL: https://issues.apache.org/jira/browse/ASTERIXDB-3214
Project: Apache AsterixDB
Issue Type: Bug
Components: STO - Storage
Affects Versions: 0.9.9
Reporter: Wail Y. Alkowaileet
Assignee: Wail Y. Alkowaileet
Fix For: 0.9.9
Currently, the method markAsDeleted in LSMColumnBTreeRangeSearchCursor has the
following implementation:
{code:java}
protected void markAsDeleted(PriorityQueueElement e) throws
HyracksDataException {
if (isMemoryComponent[e.getCursorIndex()]) {
super.markAsDeleted(e);
return;
}
IColumnTupleIterator columnTuple = (IColumnTupleIterator) e.getTuple();
columnTuple.skip(1);
} {code}
The problem here is that if *columnTuple* is an anti-matter, we will skip
non-key columns that do not belong to the anti-matter (as anti-matter tuples do
not have anything besides the PKs). So, this should only skip non-key columns
if the tuple is not an anti-matter one.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)