You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/06/27 10:00:12 UTC

[jira] [Commented] (AIRFLOW-3671) Wrong deprecation warning for MongoToS3Operator

    [ https://issues.apache.org/jira/browse/AIRFLOW-3671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16873975#comment-16873975 ] 

ASF subversion and git services commented on AIRFLOW-3671:
----------------------------------------------------------

Commit fe7d43a5d43417fd9029608682a1b1d695c1d093 in airflow's branch refs/heads/v1-10-test from John Cheng
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=fe7d43a ]

[AIRFLOW-3671] Remove arg `replace` of MongoToS3Operator from `kwargs` (#4480)

If the operator get arguments from `kwargs`, it will fire DeprecationWarning

(cherry picked from commit c3c131218bf0b8a7f1254bd80191fb4c4ffbeaa6)


> Wrong deprecation warning for MongoToS3Operator
> -----------------------------------------------
>
>                 Key: AIRFLOW-3671
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3671
>             Project: Apache Airflow
>          Issue Type: New Feature
>          Components: operators
>    Affects Versions: 1.10.0
>            Reporter: John Cheng
>            Assignee: John Cheng
>            Priority: Minor
>             Fix For: 1.10.4
>
>
>  The operator should not get {{replace}} from {{kwargs}}.
> {{/usr/local/lib/python3.6/site-packages/airflow/models.py:2418: PendingDeprecationWarning: Invalid arguments were passed to MongoToS3Operator. Support for passing such arguments will be dropped in Airflow 2.0. Invalid arguments were:}}
> {{*args: ()}}
> {{**kwargs: \{'replace': True}}}
> {{ category=PendingDeprecationWarning}}



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