Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scanner result.getValue returns null for indexed scan #5

Open
andrewbaxter opened this issue Feb 2, 2011 · 1 comment
Open

Scanner result.getValue returns null for indexed scan #5

andrewbaxter opened this issue Feb 2, 2011 · 1 comment

Comments

@andrewbaxter
Copy link

Using a scanner constructed like:
ResultScanner scanner = table.getIndexedScanner(indexId, indexKey, null, null,
null, baseColumns.toArray(new byte[baseColumns.size()][]));

Doing result.getValue for any field returned null. I confirmed the values were in the result by walking the map from getNoVersionMap.

Commenting out:
for (KeyValue indexKV : row.list()) {
if (indexKV.matchingFamily(INDEX_COL_FAMILY)) {
continue;
}
results.add(new KeyValue(baseRow, indexKV.getFamily(), indexKV.getQualifier(), indexKV
.getTimestamp(), KeyValue.Type.Put, indexKV.getValue()));
}
from IndexedTable.java solved the problem. I think those are lines 188-194.

@jameskennedy
Copy link
Member

Ok, i will address this soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants