Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloud Datastore Emulator doesn't support IN/NOT_IN/NOT_EQUAL operators #803

Open
montss opened this issue Jul 26, 2022 · 1 comment
Open
Labels
api: datastore Issues related to the googleapis/java-datastore API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@montss
Copy link

montss commented Jul 26, 2022

#665
com.google.cloud:libraries-bom:26.0.0

Gcloud SDK 394.0.0

Stack trace

com.google.cloud.datastore.DatastoreException: A list value is not allowed  A list value is not allowed
com.google.datastore.v1.client.DatastoreException: A list value is not allowed, code=INVALID_ARGUMENT  A list value is not allowed
com.google.datastore.v1.client.DatastoreException: A list value is not allowed, code=INVALID_ARGUMENT
	at com.google.datastore.v1.client.RemoteRpc.makeException(RemoteRpc.java:171)
	at com.google.datastore.v1.client.RemoteRpc.makeException(RemoteRpc.java:239)
	at com.google.datastore.v1.client.RemoteRpc.call(RemoteRpc.java:100)
	at com.google.datastore.v1.client.Datastore.runQuery(Datastore.java:117)
	at com.google.cloud.datastore.spi.v1.HttpDatastoreRpc.runQuery(HttpDatastoreRpc.java:198)
	at com.google.cloud.datastore.DatastoreImpl$1.call(DatastoreImpl.java:195)
	at com.google.cloud.datastore.DatastoreImpl$1.call(DatastoreImpl.java:192)
	at com.google.api.gax.retrying.DirectRetryingExecutor.submit(DirectRetryingExecutor.java:103)
	at com.google.cloud.RetryHelper.run(RetryHelper.java:76)
	at com.google.cloud.RetryHelper.runWithRetries(RetryHelper.java:50)
	at com.google.cloud.datastore.DatastoreImpl.runQuery(DatastoreImpl.java:191)
	at com.google.cloud.datastore.QueryResultsImpl.sendRequest(QueryResultsImpl.java:73)
	at com.google.cloud.datastore.QueryResultsImpl.<init>(QueryResultsImpl.java:57)
	at com.google.cloud.datastore.DatastoreImpl.run(DatastoreImpl.java:184)
	at com.google.cloud.datastore.DatastoreImpl.run(DatastoreImpl.java:175)

command used to run the emulator

gcloud beta emulators datastore start --project="projectName" --host-port=localhost:8082 --data-dir="dataDir" --use-firestore-in-datastore-mode

####installed gcloud components
Google Cloud SDK 394.0.0
app-engine-java 1.9.97
app-engine-python 1.9.100
beta 2022.07.19
bq 2.0.75
cloud-datastore-emulator 2.2.1
core 2022.07.19
gsutil 5.11

@product-auto-label product-auto-label bot added the api: datastore Issues related to the googleapis/java-datastore API. label Jul 26, 2022
@meredithslota meredithslota added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label Jul 27, 2022
@lmeyer92
Copy link

Same issue here. App works when deployed but emulator fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: datastore Issues related to the googleapis/java-datastore API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

3 participants