man-group / arctic

High performance datastore for time series and tick data
https://arctic.readthedocs.io/en/latest/
GNU Lesser General Public License v2.1
3.05k stars 583 forks source link

Append Dataframe with a None value in VersionStore fails #834

Open supermodo opened 4 years ago

supermodo commented 4 years ago

Arctic Version

1.79.2

Arctic Store

VersionStore

Platform and version

OSX 10.15.1

Description of problem and/or code sample that reproduces the issue

Running 2 times this code:

from arctic import Arctic
from pandas import DataFrame

store = Arctic('localhost')
store.initialize_library('MyLibrary')
library = store['MyLibrary']
df = DataFrame(data={"symbol": ['A'], "problem": [None]})
library.append('A', df)

The first time I get this:

Pandas dataframe A contains Objects, saving as Blob

The second time I get this:

Traceback (most recent call last):
  File "app.py", line 8, in <module>
    library.append('A', df)
  File "/usr/local/lib/python3.8/site-packages/arctic/decorators.py", line 50, in f_retry
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/arctic/store/version_store.py", line 605, in append
    raise Exception("Append not implemented for handler %s" % handler)
Exception: Append not implemented for handler <arctic.store._pickle_store.PickleStore object at 0x7f6023d44640>

The code is working fine if I remove or change the None value. Is this a bug or is an expected behavior?