-
Notifications
You must be signed in to change notification settings - Fork 150
issue regarding deletion of moved columns #170
Conversation
I think a fix for this should be in 0.9 yes. |
I attached a pull-request to this issue which should fix the erroneous behavior in question. @alimanfoo maybe you could confirm it solves the issue. |
Thanks @esc, this works for me, i.e., the rootdir for the originally-on-disk column is removed after calling delcol, notebook rerun with this PR. FWIW I think it would be better to make a shallow copy (view?) of the originally-on-disk carray object passed in to addcol before modifying the |
Yes, I fear that this feature and how it should work exactly will warrant some more in-depth discussions. |
I've taken it to the mailinglist. |
The mailinglist was fairly quiet so I have implemented a full copy of the column. I think this is a) what users would expect and b) delegates the internals to the carray itself. Note however, that when adding an in-memory column the python object is not copied, which may cause confusion yet again. In addition, this feature isn't fully cooked yet so this is to be considered as more of an interim bug-fix and the API will likely undergo some more refactoring. |
FWIW as a user I'm comfortable with this solution. On Saturday, 11 April 2015, Valentin Haenel notifications@github.com
Alistair Miles |
Ok, it's decided, we are taking it. |
Aight, here goes. |
issue regarding deletion of moved columns
As reported in #137 there is an issue with removing on-disk columns that had been created previously elsewhere:
http://nbviewer.ipython.org/gist/alimanfoo/6cc03872fe8054e63860/bcolz_ctable_delcol.ipynb
Basically, the problem is that when moving a column into the ctable, the rootdir of that carray isn't being updated.