Joe McDonnell created IMPALA-14104:
--------------------------------------
Summary: TestDecimalFuzz fails on Python 3 due to division
producing a float
Key: IMPALA-14104
URL: https://issues.apache.org/jira/browse/IMPALA-14104
Project: IMPALA
Issue Type: Sub-task
Components: Test
Affects Versions: Impala 5.0.0
Reporter: Joe McDonnell
When using IMPALA_USE_PYTHON3_TESTS=true, query_test/test_decimal_fuzz.py fails
with the following error:
{noformat}
query_test/test_decimal_fuzz.py:253: in test_decimal_ops
for _ in range(self.iterations):
E TypeError: 'float' object cannot be interpreted as an integer{noformat}
It uses division to produce the number of iterations, and on Python3, division
produces a float rather than an int. This works on Python 2, because the range
that we import from builtins seems to handle range() calls with float as
argument. This can easily be fixed by specifically converting to int.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]