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/03 09:49:00 UTC

[jira] [Updated] (AIRFLOW-4224) TypeError: unorderable types: int() >= str()

     [ https://issues.apache.org/jira/browse/AIRFLOW-4224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vianney FOUCAULT updated AIRFLOW-4224:
--------------------------------------
    Description: 
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:3705

No clue so far

  was:
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


> 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.1, 1.10.2
>         Environment: debian stretch/python35 airflow 1.10.2 1.10.1/celery
>            Reporter: Vianney FOUCAULT
>            Priority: Major
>              Labels: easyfix
>             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:3705
> No clue so far



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)