This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 55d11464c0 Resolve warning about DISTINCT ON query on dags view
(#26608)
55d11464c0 is described below
commit 55d11464c047d2e74f34cdde75d90b633a231df2
Author: Daniel Standish <[email protected]>
AuthorDate: Fri Sep 23 01:52:26 2022 -0700
Resolve warning about DISTINCT ON query on dags view (#26608)
Closes #26607
---
airflow/www/views.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow/www/views.py b/airflow/www/views.py
index 1aa6acb8b2..ee651b545d 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -707,7 +707,7 @@ class Airflow(AirflowBaseView):
else:
dag.can_delete = (permissions.ACTION_CAN_DELETE,
dag_resource_name) in user_permissions
- dagtags = session.query(DagTag.name).distinct(DagTag.name).all()
+ dagtags = session.query(func.distinct(DagTag.name)).all()
tags = [
{"name": name, "selected": bool(arg_tags_filter and name in
arg_tags_filter)}
for name, in dagtags