jason810496 commented on code in PR #42959:
URL: https://github.com/apache/airflow/pull/42959#discussion_r1805984387


##########
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:
   
   
   Hi @pierrejeambrun, I encountered an issue with `SortParm` when working on 
PostgreSQL. The error details are as follows:
   
   ```
   2024-10-17 16:30:52.868 UTC [15780] ERROR:  for SELECT DISTINCT, ORDER BY 
expressions must appear in select list at character 84
   2024-10-17 16:30:52.868 UTC [15780] STATEMENT:  SELECT DISTINCT dag_tag.name 
           FROM dag_tag 
           WHERE dag_tag.name ILIKE '%%' ORDER BY CASE WHEN (dag_tag.name IS 
NOT NULL) THEN 0 ELSE 1 END, dag_tag.name ASC, dag_tag.name 
            LIMIT 2 OFFSET 1
   ```
   
   I haven't yet thought of a solution that avoids distinguishing the dialect 
type for returning a specific SQL statement.
   



-- 
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]

Reply via email to