You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm only writing this up so it hopefully doesn't bite any other user 😺.
This shamefully took me a while to figure out because of 2 problems:
the pymarketstore.Client.write() method doesn't raise errors returned from the server by default which meant I didn't see the column mismatch error returned from the server (at least errors of a certain class).
The server actually capitalizes all element names (numpy.dtype field names from the pymarketstore.Client perspective) when loading timebucket info. So, if you write non-capitalized field names in your numpy` structured array field names, you'll get an error when you try to append to that time bucket. So for example the following client code raises an error:
I'm only writing this up so it hopefully doesn't bite any other user 😺.
This shamefully took me a while to figure out because of 2 problems:
the
pymarketstore.Client.write()
method doesn't raise errors returned from the server by default which meant I didn't see the column mismatch error returned from the server (at least errors of a certain class).The server actually capitalizes all element names (
numpy.dtype
field names from thepymarketstore.Client
perspective) when loading timebucket info. So, if you write non-capitalized field names in your numpy` structured array field names, you'll get an error when you try to append to that time bucket. So for example the following client code raises an error:I'll probably make an issue on
pymarketstore
to at least document that structarray fields must be caps.The text was updated successfully, but these errors were encountered: