You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Vianney FOUCAULT (JIRA)" <ji...@apache.org> on 2019/04/02 16:00:00 UTC
[jira] [Created] (AIRFLOW-4224) TypeError: unorderable types: int()
>= str()
Vianney FOUCAULT created AIRFLOW-4224:
-----------------------------------------
Summary: TypeError: unorderable types: int() >= str()
Key: AIRFLOW-4224
URL: https://issues.apache.org/jira/browse/AIRFLOW-4224
Project: Apache Airflow
Issue Type: Bug
Components: models
Affects Versions: 1.10.2, 1.10.1
Environment: debian stretch/python35 airflow 1.10.2 1.10.1/celery
Reporter: Vianney FOUCAULT
Fix For: 1.10.3
python 3 does not handle some cross type comparisons.
python2.7
{code:java}
>>> foo = 10
>>> bar = "20"
>>> foo > bar
False
>>>
{code}
python3.5
{code:java}
>>> foo = 10
>>> bar = "10"
>>> foo >= bar
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unorderable types: int() >= str()
>>>
{code}
python3.7
{code:java}
>>> foo = 10
>>> bar = 10
>>> bar = "10"
>>> foo >= bar
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: '>=' not supported between instances of 'int' and 'str'
>>>
{code}
within airflow 1.10.1
* jobs.py:1182
* and models.py:3586
within airflow 1.10.2
* jobs.py:1179
* models.py:3586
No clue so far
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)