kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpe...@apache.org
Subject [4/4] kudu git commit: python client: Fix typo in method name
Date Thu, 14 Jun 2018 23:40:59 GMT
python client: Fix typo in method name

Rename ScanTokenBuilder.set_timout_millis() to set_timeout_millis().

The original method has not been removed, but noted as deprecated. It
should be removed in a future release.

Change-Id: I88d640ab4184ba750796b4c929de4b8a762b6570
Reviewed-on: http://gerrit.cloudera.org:8080/10721
Reviewed-by: Adar Dembo <adar@cloudera.com>
Tested-by: Kudu Jenkins


Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/b5f3d1a1
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/b5f3d1a1
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/b5f3d1a1

Branch: refs/heads/master
Commit: b5f3d1a10aa51c623f074eb6852149d304676c7b
Parents: c12e635
Author: Mike Percy <mpercy@apache.org>
Authored: Thu Jun 14 15:11:41 2018 -0700
Committer: Mike Percy <mpercy@apache.org>
Committed: Thu Jun 14 23:39:26 2018 +0000

----------------------------------------------------------------------
 python/kudu/client.pyx | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/b5f3d1a1/python/kudu/client.pyx
----------------------------------------------------------------------
diff --git a/python/kudu/client.pyx b/python/kudu/client.pyx
index 5997bee..afa7e8d 100644
--- a/python/kudu/client.pyx
+++ b/python/kudu/client.pyx
@@ -2162,9 +2162,9 @@ cdef class ScanTokenBuilder:
 
         return self
 
-    def set_timout_millis(self, millis):
+    def set_timeout_millis(self, millis):
         """
-        Sets the timeout in milliseconds.
+        Sets the scan request timeout in milliseconds.
         Returns a reference to itself to facilitate chaining.
 
         Parameters
@@ -2179,6 +2179,15 @@ cdef class ScanTokenBuilder:
         check_status(self._builder.SetTimeoutMillis(millis))
         return self
 
+    def set_timout_millis(self, millis):
+        """
+        See set_timeout_millis().
+
+        This method is deprecated due to having a typo in the method name and
+        will be removed in a future release.
+        """
+        return self.set_timeout_millis(millis)
+
     def set_fault_tolerant(self):
         """
         Makes the underlying KuduScanner fault tolerant.


Mime
View raw message