-
Notifications
You must be signed in to change notification settings - Fork 655
Bigtable - Condition filter doesn't return rows unless "fail" condition is set #1458
Copy link
Copy link
Closed
Labels
api: bigtableIssues related to the Bigtable API.Issues related to the Bigtable API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
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
});
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: bigtableIssues related to the Bigtable API.Issues related to the Bigtable API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.