Skip to content

Support SODA API version 2.1 #35

@bolek

Description

@bolek

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions