samuelkhtu commented on issue #8525:
URL: https://github.com/apache/airflow/issues/8525#issuecomment-629226528


   Thank you @jeffolsi . I see. I guess what you are looking for is sightly 
different than the Python version. Yes, the SQL query can decide True/False but 
we still need to let the operator knows which "branch" or path you want to 
follow right?  How about the following?
   
   `
   BranchSqlOperator(
   conn_id: str,
   sql: str, 
   parameters: Optional, 
   follow_tasks_if_true: list, # list of task ids to follow if SQL return True,
   follow_tasks_if_false: list, # list of task ids to follow if SQL return False
   )
   `
   
   
   
   
   
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to