diff --git a/awswrangler/redshift.py b/awswrangler/redshift.py index c1e70251c..001dc933b 100644 --- a/awswrangler/redshift.py +++ b/awswrangler/redshift.py @@ -1297,6 +1297,8 @@ def copy_from_files( # pylint: disable=too-many-locals,too-many-arguments Whether to commit the transaction. True by default. manifest: bool If set to true path argument accepts a S3 uri to a manifest file. + sql_copy_extra_params: Optional[List[str]] + Additional copy parameters to pass to the command. For example: ["STATUPDATE ON"] boto3_session : boto3.Session(), optional Boto3 Session. The default boto3 session will be used if boto3_session receive None. s3_additional_kwargs: @@ -1408,6 +1410,7 @@ def copy( # pylint: disable=too-many-arguments keep_files: bool = False, use_threads: Union[bool, int] = True, lock: bool = False, + sql_copy_extra_params: Optional[List[str]] = None, boto3_session: Optional[boto3.Session] = None, s3_additional_kwargs: Optional[Dict[str, str]] = None, max_rows_by_file: Optional[int] = 10_000_000, @@ -1498,6 +1501,8 @@ def copy( # pylint: disable=too-many-arguments If integer is provided, specified number is used. lock : bool True to execute LOCK command inside the transaction to force serializable isolation. + sql_copy_extra_params: Optional[List[str]] + Additional copy parameters to pass to the command. For example: ["STATUPDATE ON"] boto3_session : boto3.Session(), optional Boto3 Session. The default boto3 session will be used if boto3_session receive None. s3_additional_kwargs: @@ -1573,6 +1578,7 @@ def copy( # pylint: disable=too-many-arguments lock=lock, boto3_session=session, s3_additional_kwargs=s3_additional_kwargs, + sql_copy_extra_params=sql_copy_extra_params, ) finally: if keep_files is False: