Skip to content

Commit

Permalink
vdk-impala: Fix issue caused by timeout parameter having a float value
Browse files Browse the repository at this point in the history
If the VDK_IMPALA_TIMEOUT env variable has a value, any query fails with
```
debug: Retrying vdk.internal.builtin_plugins.connection.managed_connection_base.ManagedConnectionBase.connect in 30.0 seconds as it raised TypeError: can't multiply sequence by non-int of type 'float'.
```
This change fixes this issue by converting the parameter to int.

Testing done: observed query was successful after the implemented change

Signed-off-by: Gabriel Georgiev <[email protected]>
  • Loading branch information
gabrielgeorgiev1 committed Dec 2, 2021
1 parent bff4b91 commit 1a1288a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _connect(self):
host=self._host,
port=self._port,
database=self._database,
timeout=self._timeout,
timeout=int(self._timeout),
use_ssl=self._use_ssl,
ca_cert=self._ca_cert,
auth_mechanism=self._auth_mechanism,
Expand Down

0 comments on commit 1a1288a

Please sign in to comment.