-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
data modeling:access policiesquestionThe issue is a question. Please use Stack Overflow for questions.The issue is a question. Please use Stack Overflow for questions.
Description
Describe the bug
Can't use array of values for access policy row level filter.
To Reproduce
Given the following access_policy:
cubes:
- name: customers
sql_table: public.customers
access_policy:
- role: "*"
row_level:
filters:
- member: country
operator: equals
values: { securityContext.countries }
...
And the following securityContext:
{
"countries": [
"Germany",
"United States"
]
}
If I try to query it:
{
"dimensions": [
"customers.country"
],
"measures": [
"customers.count"
],
"order": {},
"timeDimensions": []
}
I get error: Unexpected input during yaml transpiling: null
Expected behavior
Should be possible to filter by multiple values (just like the standard filter operator works in cube)
From docs: "row filters are configured using the same format as filters in REST API queries, allowing to use the same set of filter operators, e.g., equals, contains, gte, etc."
Version:
Cube Cloud (1.2.6)
eshepelyuk
Metadata
Metadata
Assignees
Labels
data modeling:access policiesquestionThe issue is a question. Please use Stack Overflow for questions.The issue is a question. Please use Stack Overflow for questions.