Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Skip range ghosts in ColumnFamily.get_range()
This means that range ghosts (i.e., you get back a key,
but no columns) will no longer count towards the requested
row count and will no longer be yielded by the generator.
  • Loading branch information
thobbs committed Sep 24, 2011
1 parent 067bcc5 commit b482c30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pycassa/columnfamily.py
Expand Up @@ -798,6 +798,8 @@ def get_range(self, start="", finish="", columns=None, column_start="",
# because it will be a duplicate.
if j == 0 and i != 0:
continue
if not key_slice.columns:
continue
yield (self._unpack_key(key_slice.key),
self._cosc_to_dict(key_slice.columns, include_timestamp))
count += 1
Expand Down

0 comments on commit b482c30

Please sign in to comment.