Skip to content

Conversation

@tkhurana
Copy link
Contributor

No description provided.

…tyColumnOnlyFilter and DistinctPrefixFilter

@Override
public void filterRowCells(List<Cell> kvs) throws IOException {
if (kvs.size() > 1) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We expect that the list size is either 1 or 2. If it is more than 2, we should catch it. I suggest we should log an error for that.

// since the empty column cell could have been excluded by another filter like the
// DistinctPrefixFilter.
Cell cell = kvs.get(0);
if (found && !ScanUtil.isEmptyColumn(cell, emptyCF, emptyCQ)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this really happen in ITs or is it just a defensive coding?

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

Successfully merging this pull request may close these issues.

2 participants