turbaszek commented on issue #8052: URL: https://github.com/apache/airflow/issues/8052#issuecomment-619429907
> An example would be cases when people build command lines, text messages, SQL queries, and so on based on the previous operator's results > for example: > 1. BashOperator with bash_command ( that is expected to be string) > BashOperator( "do_something --cluster-id %s" %..) > 2. HiveOperator( hql = "... %s" % some_op_result["table_id") Imho here we should be opinionated and "purely functional". Thus I would suggest using factory function (operator) like `prepare_bash_cmd` or `build_hql` which result (XComArg) will be then passed as an input. ---------------------------------------------------------------- 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]
