Skip to content

Commit a474296

Browse files
niklasr22jaidisido
andauthored
fix default value in doc string for athena_query_wait_polling_delay parameters (#2873)
Co-authored-by: jaidisido <[email protected]>
1 parent 12bac7c commit a474296

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

awswrangler/athena/_executions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def start_query_execution(
104104
If cached results are valid, awswrangler ignores the `ctas_approach`, `s3_output`, `encryption`, `kms_key`,
105105
`keep_files` and `ctas_temp_table_name` params.
106106
If reading cached data fails for any reason, execution falls back to the usual query run path.
107-
athena_query_wait_polling_delay: float, default: 0.25 seconds
107+
athena_query_wait_polling_delay: float, default: 1.0 seconds
108108
Interval in seconds for how often the function will check if the Athena query has completed.
109109
data_source : str, optional
110110
Data Source / Catalog name. If None, 'AwsDataCatalog' will be used by default.
@@ -211,7 +211,7 @@ def wait_query(
211211
Athena query execution ID.
212212
boto3_session : boto3.Session(), optional
213213
Boto3 Session. The default boto3 session will be used if boto3_session receive None.
214-
athena_query_wait_polling_delay: float, default: 0.25 seconds
214+
athena_query_wait_polling_delay: float, default: 1.0 seconds
215215
Interval in seconds for how often the function will check if the Athena query has completed.
216216
217217
Returns

awswrangler/athena/_read.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ def get_query_results(
705705
Forwarded to `to_pandas` method converting from PyArrow tables to Pandas DataFrame.
706706
Valid values include "split_blocks", "self_destruct", "ignore_metadata".
707707
e.g. pyarrow_additional_kwargs={'split_blocks': True}.
708-
athena_query_wait_polling_delay: float, default: 0.25 seconds
708+
athena_query_wait_polling_delay: float, default: 1.0 seconds
709709
Interval in seconds for how often the function will check if the Athena query has completed.
710710
711711
Returns
@@ -960,7 +960,7 @@ def read_sql_query(
960960
If reading cached data fails for any reason, execution falls back to the usual query run path.
961961
data_source : str, optional
962962
Data Source / Catalog name. If None, 'AwsDataCatalog' will be used by default.
963-
athena_query_wait_polling_delay: float, default: 0.25 seconds
963+
athena_query_wait_polling_delay: float, default: 1.0 seconds
964964
Interval in seconds for how often the function will check if the Athena query has completed.
965965
params: Dict[str, any] | List[str], optional
966966
Parameters that will be used for constructing the SQL query.
@@ -1426,7 +1426,7 @@ def unload(
14261426
14271427
- ``named``
14281428
- ``qmark``
1429-
athena_query_wait_polling_delay: float, default: 0.25 seconds
1429+
athena_query_wait_polling_delay: float, default: 1.0 seconds
14301430
Interval in seconds for how often the function will check if the Athena query has completed.
14311431
14321432
Returns

awswrangler/athena/_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ def repair_table(
507507
None, 'SSE_S3', 'SSE_KMS', 'CSE_KMS'.
508508
kms_key : str, optional
509509
For SSE-KMS and CSE-KMS , this is the KMS key ARN or ID.
510-
athena_query_wait_polling_delay: float, default: 0.25 seconds
510+
athena_query_wait_polling_delay: float, default: 1.0 seconds
511511
Interval in seconds for how often the function will check if the Athena query has completed.
512512
boto3_session : boto3.Session(), optional
513513
Boto3 Session. The default boto3 session will be used if boto3_session receive None.
@@ -583,7 +583,7 @@ def describe_table(
583583
None, 'SSE_S3', 'SSE_KMS', 'CSE_KMS'.
584584
kms_key : str, optional
585585
For SSE-KMS and CSE-KMS , this is the KMS key ARN or ID.
586-
athena_query_wait_polling_delay: float, default: 0.25 seconds
586+
athena_query_wait_polling_delay: float, default: 1.0 seconds
587587
Interval in seconds for how often the function will check if the Athena query has completed.
588588
s3_additional_kwargs : dict[str, Any], optional
589589
Forwarded to botocore requests.
@@ -701,7 +701,7 @@ def create_ctas_table(
701701
Recommended for memory restricted environments.
702702
wait : bool, default False
703703
Whether to wait for the query to finish and return a dictionary with the Query metadata.
704-
athena_query_wait_polling_delay: float, default: 0.25 seconds
704+
athena_query_wait_polling_delay: float, default: 1.0 seconds
705705
Interval in seconds for how often the function will check if the Athena query has completed.
706706
execution_params: List[str], optional [DEPRECATED]
707707
A list of values for the parameters that are used in the SQL query.
@@ -913,7 +913,7 @@ def show_create_table(
913913
None, 'SSE_S3', 'SSE_KMS', 'CSE_KMS'.
914914
kms_key : str, optional
915915
For SSE-KMS and CSE-KMS , this is the KMS key ARN or ID.
916-
athena_query_wait_polling_delay: float, default: 0.25 seconds
916+
athena_query_wait_polling_delay: float, default: 1.0 seconds
917917
Interval in seconds for how often the function will check if the Athena query has completed.
918918
s3_additional_kwargs: dict[str, Any]
919919
Forwarded to botocore requests.

0 commit comments

Comments
 (0)