You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2018/09/02 17:56:06 UTC
[jira] [Assigned] (AIRFLOW-2818) Cant' identify DAG .py files with
capital case extension ('.PY', '.Py', '.pY')
[ https://issues.apache.org/jira/browse/AIRFLOW-2818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned AIRFLOW-2818:
-------------------------------------
Assignee: Xiaodong DENG (was: Holden Karau's magical unicorn)
> Cant' identify DAG .py files with capital case extension ('.PY', '.Py', '.pY')
> ------------------------------------------------------------------------------
>
> Key: AIRFLOW-2818
> URL: https://issues.apache.org/jira/browse/AIRFLOW-2818
> Project: Apache Airflow
> Issue Type: Bug
> Components: DAG
> Reporter: Xiaodong DENG
> Assignee: Xiaodong DENG
> Priority: Major
>
> This bug is quite simple.
> In multiple scripts in which we try to identify and list python files, the capital case extension was not considered. For example, if I have a DAG file with file name "dag.py", it will be identified. However, if I change the name into "dag.PY", it will be missed by Airflow.
> This is because simply using function *os.path.splitext()* can not handle case issue.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)