appengine-mapreduce icon indicating copy to clipboard operation
appengine-mapreduce copied to clipboard

DatastoreInputReader filter item in list

Open RubenMattan opened this issue 9 years ago • 1 comments

When you want to check if a list contains an item you normally check by doing .filter("list =", item) but DatastoreInputReader validation is expecting a list instead of an item.

Should be mapper_params = { "filters": [("list", "=", item)] } instead of mapper_params = { "filters": [("list", "=", [item])] }

Validate in source code

RubenMattan avatar Jul 05 '16 14:07 RubenMattan

@RubenMattan I opened a pull request for it https://github.com/GoogleCloudPlatform/appengine-mapreduce/pull/94 this seems only affect db.Model as ndb is fine.

eko-wibowo avatar Jul 21 '16 21:07 eko-wibowo