Wrong parsing of repeated structured properties #757
Labels
api: datastore
Issues related to the googleapis/python-ndb API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Short-reproducible example
Example of prints, they are different time to time
The case is that in raw datastore response it returns
e.g.
{'field_a_3.field_b_2': [None], 'field_a_3.field_b_2.field_c_1': ['value_c_1_1', 'value_c_1_2']}
And it confuses parser time to time and it raises KindError, sometimes parser could done his job but it parses not all values, so some of fields of ModelC could be with null values, but in the DB they're not null
Seems like the fix is to sort keys that we receive from google cloud datastore API
The text was updated successfully, but these errors were encountered: