[
https://issues.apache.org/jira/browse/AIRFLOW-3292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16673289#comment-16673289
]
Ash Berlin-Taylor commented on AIRFLOW-3292:
--------------------------------------------
{{.}} in a dag is reserves for subdags, so deleting {{schema}} also deletes the
subdags too. If {{schema.table1}} is _NOT_ a sub-dag then we should probably
add better validation of the dag id to only allow dots in dag ids when used in
subdags.
Does that help?
> `delete_dag` endpoint and cli commands don't delete on exact dag_id matching
> ----------------------------------------------------------------------------
>
> Key: AIRFLOW-3292
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3292
> Project: Apache Airflow
> Issue Type: Bug
> Components: api, cli
> Affects Versions: 1.10.0
> Reporter: Teresa Martyny
> Priority: Major
>
> If you have the following dag ids: `schema`, `schema.table1`,
> `schema.table2`, `schema_replace`
> When you hit the delete_dag endpoint with the dag id: `schema`, it will
> delete `schema`, `schema.table1`, and `schema.table2`, not just `schema`.
> Underscores are fine so it doesn't delete `schema_replace`, but periods are
> not.
> If this is expected behavior, clarifying that functionality in the docs would
> be great, and then I can submit a feature request for the ability to use
> regex for exact matching with this command and endpoint.
> Thanks!!
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)