Skip to content

Feature Request: support SubstringComparator with NOT_EQUAL #4467

@gsbingo17

Description

@gsbingo17

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)'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: bigtableIssues related to the googleapis/java-bigtable-hbase API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions