googleapis / googleapis/java-bigtable-hbase

Feature Request: support SubstringComparator with NOT_EQUAL

Open
#4,467 0 comments 0 reactions 0 assignees View on GitHub
api: bigtable
Dominant language
Java
Stars
184
Forks
184
Avg merge
10h
Merged PRs (30d)
6

Description

We are refactoring the application with Cloud Bigtable from HBase.

The code snippet using HBase:

```
if (StringUtils.isNotBlank(value)) {
SubstringComparator notContainsValue = new SubstringComparator(value);
SingleColumnValueFilter filter = new SingleColumnValueFilter(CF, Bytes.toBytes(CQ1),
CompareFilter.CompareOp.NOT_EQUAL, notContainsValue);
filterList.addFilter(filter);
}
```

However, Bigtable's HBase API does not support SubstringComparator with NOT_EQUAL. And we got the following error:

```
reason='ValueFilter must have either a BinaryComparator with any compareOp or a RegexStringComparator with an EQUAL compareOp. Found (SubstringComparator, NOT_EQUAL)'}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.