I am trying to do a like query on a socrata dataset using the soda-java api with this code
Soda2Consumer consumer = Soda2Consumer.newConsumer("https://data.cityofboston.gov");
SoqlQuery departmentOfStateQuery = new SoqlQueryBuilder()
.addSelectPhrase("entered")
.addSelectPhrase("vendor_name")
.addSelectPhrase("account_descr")
.addSelectPhrase("dept_name")
.setWhereClause("vendor_name like'IBM%'")
.build();
consumer.query("gqai-h7bg",departmentOfStateQuery,Nomination.LIST_TYPE);
But i am getting an error
Exception in thread "main" com.socrata.exceptions.MalformedQueryError: Error: function #LIKE is not defined in SoQL.: Error: function #LIKE is not defined in SoQL.
Using a browser is working fine with this
https://data.cityofboston.gov/resource/gd7m-xsim.json?$where=vendor_name like 'IBM%' even though FF is translating it to https://data.cityofboston.gov/resource/gd7m-xsim.json?$where=vendor_name%20like%20%27IBM%%27
which encoding I did use with the same result.