pierrejeambrun commented on code in PR #42959:
URL: https://github.com/apache/airflow/pull/42959#discussion_r1806431849
##########
airflow/api_fastapi/parameters.py:
##########
@@ -129,6 +129,26 @@ def transform_aliases(self, value: str | None) -> str |
None:
return value
+class _OrderByParam(BaseParam[str]):
Review Comment:
Yes, I think it's because of the `distinct` requirering the `case` statement
in the select. `group_by` happens before the projection and seems to solve the
problem.
`select(DagTag.name).group_by(DagTag.name)` instead of
`select(distinct(DagTag.name))`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]