uranusjr commented on code in PR #32177:
URL: https://github.com/apache/airflow/pull/32177#discussion_r1245213748


##########
airflow/utils/db.py:
##########
@@ -1304,10 +1306,10 @@ def _dangling_against_task_instance(session, 
source_table, dag_run, task_instanc
         )
 
     return (
-        session.query(*[c.label(c.name) for c in source_table.c])
+        select(*[c.label(c.name) for c in source_table.c])

Review Comment:
   This does not create an intermediate tuple but expands a generator directly. 
With `*[]` the generator is first realised into a list and then the list is 
expanded.



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