You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Joe McDonnell (Jira)" <ji...@apache.org> on 2025/05/27 22:31:00 UTC
[jira] [Work started] (IMPALA-14104) TestDecimalFuzz fails on Python 3 due to division producing a float
[ https://issues.apache.org/jira/browse/IMPALA-14104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on IMPALA-14104 started by Joe McDonnell.
----------------------------------------------
> 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
> Assignee: Joe McDonnell
> Priority: Major
>
> 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: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org