You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/08/09 12:22:46 UTC

[GitHub] [airflow] eladkal commented on a diff in pull request #25619: Enable multiple query execution in RedshiftDataOperator

eladkal commented on code in PR #25619:
URL: https://github.com/apache/airflow/pull/25619#discussion_r941271161


##########
airflow/providers/amazon/aws/operators/redshift_data.py:
##########
@@ -43,6 +44,8 @@ class RedshiftDataOperator(BaseOperator):
     :param secret_arn: the name or ARN of the secret that enables db access
     :param statement_name: the name of the SQL statement
     :param with_event: indicates whether to send an event to EventBridge
+    :param enable_batch_execution: Enable executing multiple query.
+    :param sqls: List of sql statement. This is required when ``enable_batch_execution`` is ``true``

Review Comment:
   I'm not so happy with having both `sql` and `sqls`
   To me it seems like we also don't need `enable_batch_execution` as it can be deduced from the type user passed.
   if string passed to `sql` then it's regular mode
   if list of string passed to `sql` then it's batch mode.
   
   WDYT?



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org