LMnet opened a new pull request, #29434: URL: https://github.com/apache/airflow/pull/29434
I added two improvements to the `RedshiftDataOperator`: 1. Better error reporting. Before my changes, all you get in case of an error is just a status (`FAILURE`). It's not very helpful. I added the whole response in the exception, so it will be printed in the logs and it will give a possibility to troubleshoot problems easily. 2. I added a `return_sql_result` optional parameter. By default it's `False`, so it's a backward-compatible change. If it's `True` operator will return a result of a SQL query from the `execute` method. It means that this result will be available through xcom variables. It may be handy if you need to get some small portions of data (or metadata) from Redshift. For example, I'm running `show table` query to get a DDL of some table and create a temporary copy of it. -- 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]
