title: Spring Boot + gcp datastore + datastore emulator gets INVALID_ARGUMENT Encountered "OR" / "IN"
body: <p>I have an application running in the App Engine Standar Environment using the Google Cloud Tools and the Datanucleus framework to access the data.</p>
  <p>When I run this application in the local environment it works fine and, when I make a Select with an OR or an IN in the Where clause, it returns the registers of the tables without problem.</p>
  <p>Now, I want to improve my application and create a new one using Spring Boot, the Spring Cloud GCP and the local Cloud Datastore Emulator.
  When I try to do a query over the Datastore Emulator it works fine but, but when the query has an IN or an OR, the emulator logs and error.</p>
  <p>The query is:</p>
  <pre><code>@Query(value = &quot;SELECT * FROM  Evento WHERE fincaId = @id_finca AND tipoEvento = 3 OR tipoEvento = 4&quot;)
  </code></pre>
  <p>And the error text:</p>
  <pre><code>[datastore] INFORMACI?N: Exception when handling request: INVALID_ARGUMENT: Encountered &quot;OR&quot; at line 1, column 68.
  [datastore] Was expecting one of:
  [datastore]     &lt;EOF&gt;
  [datastore]     &quot;and&quot; ...
  [datastore]     &quot;group&quot; ...
  [datastore]     &quot;limit&quot; ...
  [datastore]     &quot;offset&quot; ...
  [datastore]     &quot;order&quot; ...
  </code></pre>
  <p>Can Datastore Emulator make queries with an OR or an IN clause?</p>
  <p>Is there a way to do this in a different way?</p>