-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
I am trying to run the following query:
def soql = new SoqlQueryBuilder()
.addSelectPhrase("count(*)")
.setWhereClause(":updated_at>'${dateString}'")
.build();soda-java currently generates the following url:
https://data.cityofnewyork.us/resource/fhrw-4uyv.json?$select=count(*)&$where=:updated_at%3E%272018-05-08T21:19:25Z%27&$$version=2.0
which returns
{"message":"Invalid SoQL query","errorCode":"query.soql.invalid","data":{}}
Seems that this particular query is not supported by API version 2.0. Changing version to 2.1 results in a successful response.
The API SODA_VERSION is set here:
| final UriBuilder builder = UriBuilder.fromUri(uri).queryParam(SODA_VERSION, "2.0"); |
Are there any plans to bump SODA_VERSION to 2.1?
Metadata
Metadata
Assignees
Labels
No labels