Skip to content

Query with select causing issue - Precondition Failed #1345

@susanlinsfu

Description

@susanlinsfu

image

I have a kind called 'm'. All the entities inside this kind have the same structure. All, but one attribute are indexed.

I run the following query:

var query = datastore.createQuery('m').select(['b','c','d','e', 'f']).filter('a', '1464235500').limit(10);

  datastore.runQuery(query, function(err, entities, info) {
    if (err) {
      return (callback('error : ' + err)); // This prints out 'error : Precondition Failed'
    }
       //do stuff with entities
});

It never gets the entities and instead prints out the error message : Precondition Failed. Without select, the query return fine, but with select it does not. I can't find the problem since all the projected attributes are indexed and none are the filtering is not on a projected attribute.

0.34.0-gcloud-node and real cloud datastore (non-emulator)

Metadata

Metadata

Assignees

Labels

api: datastoreIssues related to the Datastore API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions