summaryrefslogtreecommitdiff
path: root/happybase/table.py
diff options
context:
space:
mode:
authorWouter Bolsterlee <uws@xs4all.nl>2014-02-25 21:18:43 +0100
committerWouter Bolsterlee <uws@xs4all.nl>2014-02-25 21:18:43 +0100
commit42fb0bdfa2aeb509f767412aed334f91bda2f9b4 (patch)
treee621a00d4f8e00aecb8cbc2f35ee2900d6e89cc5 /happybase/table.py
parent8c57056ca7107ef7f6fc7ba321cc52b827c233d0 (diff)
downloadhappybase-42fb0bdfa2aeb509f767412aed334f91bda2f9b4.tar.gz
Add argument sanity check for Table.scan(scan_batching=...)
Diffstat (limited to 'happybase/table.py')
-rw-r--r--happybase/table.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/happybase/table.py b/happybase/table.py
index 76351dc..b217b13 100644
--- a/happybase/table.py
+++ b/happybase/table.py
@@ -294,6 +294,9 @@ class Table(object):
if limit is not None and limit < 1:
raise ValueError("'limit' must be >= 1")
+ if scan_batching is not None and scan_batching < 1:
+ raise ValueError("'scan_batching' must be >= 1")
+
if sorted_columns and self.connection.compat < '0.96':
raise NotImplementedError(
"'sorted_columns' is not supported in HBase >= 0.96")