Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-6455

refactor wildcard SQLs

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 1.10.7
    • Fix Version/s: None
    • Component/s: database
    • Labels:
      None

      Description

      api/common/experimental/delete_dag.py: cond = or_(model.dag_id == dag_id, model.dag_id.like(dag_id + ".%"))
      jobs/scheduler_job.py: DagRun.run_id.like(DagRun.ID_PREFIX + '%')
      jobs/scheduler_job.py: not_(DR.run_id.like(BackfillJob.ID_PREFIX + '%'))))
      jobs/base_job.py: DR.run_id.notlike(BackfillJob.ID_PREFIX + '%'),
      models/dagrun.py: qry = qry.filter(DR.run_id.notlike(BackfillJob.ID_PREFIX + '%'))

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                toopt4 t oo
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: