google-cloud-python: ValueError: For an array_value, subvalues must either all be indexed or all excluded from indexes.

Getting ValueError: For an array_value, subvalues must either all be indexed or all excluded from indexes. error when querying entities with empty arrays.

Edit: I tried getting around this with projection queries where possible but I need to modify the entities after fetching them, which you can’t do with the results of a projection query. So this is a pretty big issue as there is no way around it.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 4
  • Comments: 21 (6 by maintainers)

Commits related to this issue

Most upvoted comments

I’ve forked the project just to do merge from upstream/master to the PR branch that contains this fix. You can clone my branch and install it manually if you like.

So you would have to do:

$ git clone https://github.com/alercunha/google-cloud-python/
$ cd google-cloud-python
$ git checkout datastore-issue-3152
$ cd datastore && python setup.py install