Skip to content

Bigtable - Condition filter doesn't return rows unless "fail" condition is set #1458

@imathews

Description

@imathews

As I understand from the API docs, the fail attribute of a condition filter should be optional, effectively being the same as providing [{ all: false }]. However, if I don't provide the fail attribute, I get zero rows back; the condition filter behaves as I'd expect with fail explicitly set to [{ all: false }]

Environment details

OSX @10.11.4
node @6.2.0
npm @3.8.9
gcloud-node @0.37.0

Steps to reproduce

filter = [{
    condition: {
        test: [
            {
                "column": "SEX",
                "value": "F"
            }
        ],
        pass: [{
            all: true
        }],

        // Returns zero rows unless these lines are uncommented

        // fail: [
        //  {
        //      all: false
        //  }
        // ]
    }
}]

table.getRows({
        filter,
        limit: 100,
}).on('data', (row) => {
    // Do things
});

Metadata

Metadata

Assignees

Labels

api: bigtableIssues related to the Bigtable API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions