pycassa/pycassa — Issue #116: ColumnFamily.remove deletes the entire row when columns = [].
Author: TomPrimozic
Created: 2012-01-25 15:24:12+00:00
State: open

The documentation for `ColumnFamily.remove` function states that:

> "If columns and super_column are both None, the entire row is removed."

(from [here](http://pycassa.github.com/pycassa/api/pycassa/columnfamily.html#pycassa.columnfamily.ColumnFamily.remove)).

However, when passing an empty list (`[]`), the entire row is removed as well.

This is either a huge and very dangerous bug that can probably be simply fixed by changing line [164 in file pycassa/batch.py](https://github.com/pycassa/pycassa/blob/master/pycassa/batch.py#L164) from `if columns:` into `if columns != None:` or maybe by discarding the entire mutation, or it's an intended functionality, in which case it should be clearly documented.