I understand that it is not possible to use the 'or' operator to make queries.
What alternative is there to perform a query with two filters for same attribute but diffrente query, for example:
scim2/Users?filter=field+sw+content-a&filter=field+sw+content-b
This Git issue is still in open state. Therefore, believe this has not yet been implemented.
You can achieve your requirement using 2 SCIM calls(One for each filter). Then programatically get the union of the results. Same goes for NOT operator as well. You have to perform multiple SCIM calls and programtically obtain the end result.
Related
I would like to know if there's an option to query with multiple partition keys from DynamoDB table in AWS dashboard. Unable to find any article or similar requests for dashboard on the web. Will keep you posted if I find an answer for the same.
Thanks in advance.
The Console doesn't support this directly, because there is no support in the underlying API. What you're looking for is the equivalent of the following SQL query:
select *
from table
where PK in ('value_1', 'value_2') /*equivalent to: PK = 'value_1' or PK = 'value_2' */
The console supports using the Query and Scan operations. Query always operates on an item collection, so all items that share the same partition key, which means it can't be used for your use case.
Scan on the other hand is a full table scan, which allows you to optionally filter the results. The filter language has no support for this kind of or logical operator so that won't really help you. It will however allow you to view all items, which includes the ones you're looking for, but as I said, it's not really possible.
I am trying to use pre aggregations over CLOUD SQL on Google Cloud Platform but the database is denying access and giving error Statement violates GTID consistency.
Any help is appreciated.
Cube.js done pre-aggregation by CREATE TABLE ... SELECT, but you are using MySQL on top of Google SQL with --enforce-gtid-consistency (has limitations).
Since only transactionally safe statements can be logged, there is a limitation to use CREATE TABLE ... SELECT (and some another SQL), because this statement is actually logged as two separate events.
There are two ways how to solve this issue:
1. Use pre-aggregations to an external database. (recommended way).
https://cube.dev/docs/pre-aggregations/#read-only-data-source-pre-aggregations
2. Use not documented flag loadPreAggregationWithoutMetaLock
Attention: This flag is an experimental and can be removed or changed in the feature..
Take a look at the source code
You can pass it directly in the driver constructor. This will produce two SQL statements to pass the limitation:
CREATE TABLE
INSERT INTO
Thanks
I am trying to query a Salesforce Datasource using the Salesforce API in Power BI.
The issue I am having is that the Salesforce API requires the SOQL to either contain a WHERE clause on the specific query being performed, by using an explicit value "=" or a IN operator.
If I use something like the following
each ([Column] = "value")
It works, however if I try and pass a list like the following:
each List.Contains(myList, [Column])
It fails with an error because the SOQL query being executed in the background clearly does a filtering AFTER all the data has been returned (i.e being filtered in Power BI after its been retrieved and not at source) and the Web API is expecting a IN operating with a list of values.
With regards to the first query, this works because the SOQL in the background is WHERE (MyField = 'someValue')
Does anyone have any ways around this? Can Power BI pass a collection into a where clause some way?
If not, I thought about querying the records by a single value and looping through this but it will have performance issues and not the best way of doing such query!
I have also tried joining the tables on the field I need but it also looks like the joins are performed after the data is retrived and not before (using SOQL).
I cannot modify the Web API to support other queries.
Thank you!
I'm trying to use the google directory api to get a specific set of users based on their orgUnitPath. I can't seem to get a query working where I do something like orgUnitPath=/OUTest OR orgUnitPath=/LeftOU without having to make two separate api calls. Any advice.
The query does not support OR. Currently two API calls will be necessary.
We are trying to build a data service that take three kind of filters and run a union query to get the metadata based on the passed filters.
The three kind of filters are made of complex data types, when we checked the WSO2 DSS we were not able to do an input mapping for complex types, is that not feasible?
We are trying to get all metadata with one shot though we are getting different inputs and we can't do it scalar as for example all metadata objects has name column.
Can anybody help?
I'm afraid, WSO2 DSS at the moment, does not support complex input types. But we are planning on introducing this in the next DSS 4.0.0 version. There, you would be able to pass in a complex input, and also execute multiple queries in a single operation.
Cheers,
Anjana.