When retrieving entities with compressed repeated local structured properties an exception is thrown indicating that the repeated property a list not a decompress-able byte string.
NOTE: this data was on original NDB datastore and we are using this library to fetch said data.
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/contextlib.py", line 130, in __exit__
self.gen.throw(type, value, traceback)
File "/Users/tcross/development/virtual-environments/csgapi/lib/python3.7/site-packages/google/cloud/ndb/client.py", line 177, in context
yield context
File "/Users/tcross/development/csgapi/main.py", line 24, in <module>
key = house.put()
File "/Users/tcross/development/virtual-environments/csgapi/lib/python3.7/site-packages/google/cloud/ndb/_options.py", line 89, in wrapper
return wrapped(*pass_args, **kwargs)
File "/Users/tcross/development/virtual-environments/csgapi/lib/python3.7/site-packages/google/cloud/ndb/utils.py", line 78, in wrapper
return wrapped(*args, **new_kwargs)
File "/Users/tcross/development/virtual-environments/csgapi/lib/python3.7/site-packages/google/cloud/ndb/utils.py", line 109, in positional_wrapper
return wrapped(*args, **kwds)
File "/Users/tcross/development/virtual-environments/csgapi/lib/python3.7/site-packages/google/cloud/ndb/model.py", line 4921, in _put
return self._put_async(_options=kwargs["_options"]).result()
File "/Users/tcross/development/virtual-environments/csgapi/lib/python3.7/site-packages/google/cloud/ndb/tasklets.py", line 190, in result
self.check_success()
File "/Users/tcross/development/virtual-environments/csgapi/lib/python3.7/site-packages/google/cloud/ndb/tasklets.py", line 137, in check_success
raise self._exception
File "/Users/tcross/development/virtual-environments/csgapi/lib/python3.7/site-packages/google/cloud/ndb/tasklets.py", line 312, in _advance_tasklet
yielded = self.generator.send(send_value)
File "/Users/tcross/development/virtual-environments/csgapi/lib/python3.7/site-packages/google/cloud/ndb/model.py", line 4981, in put
ds_entity = _entity_to_ds_entity(self)
File "/Users/tcross/development/virtual-environments/csgapi/lib/python3.7/site-packages/google/cloud/ndb/model.py", line 722, in _entity_to_ds_entity
names = prop._to_datastore(entity, data)
File "/Users/tcross/development/virtual-environments/csgapi/lib/python3.7/site-packages/google/cloud/ndb/model.py", line 2495, in _to_datastore
if value and not value.startswith(_ZLIB_COMPRESSION_MARKER):
AttributeError: 'list' object has no attribute 'startswith'
When retrieving entities with compressed repeated local structured properties an exception is thrown indicating that the repeated property a list not a decompress-able byte string.
https://github.com/googleapis/python-ndb/blob/release-v0.2.0/google/cloud/ndb/model.py#L2513
Please let me know how I can help!
Environment details
NOTE: this data was on original NDB datastore and we are using this library to fetch said data.
Steps to reproduce
Code example
Stack trace