Skip to content

Commit 588522a

Browse files
authored
(release) Prep release 2.18.0 (#1807)
* [skip ci] bump version to 2.18.0 * [skip ci] update dependencies * update poetry.lock
1 parent d7fb501 commit 588522a

22 files changed

+296
-275
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 2.17.0
2+
current_version = 2.18.0
33
commit = False
44
tag = False
55
tag_name = {new_version}

CONTRIBUTING_COMMON_ERRORS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ Requirement already satisfied: pbr!=2.1.0,>=2.0.0 in ./.venv/lib/python3.7/site-
1313
Using legacy 'setup.py install' for python-Levenshtein, since package 'wheel' is not installed.
1414
Installing collected packages: awswrangler, python-Levenshtein
1515
Attempting uninstall: awswrangler
16-
Found existing installation: awswrangler 2.17.0
17-
Uninstalling awswrangler-2.17.0:
18-
Successfully uninstalled awswrangler-2.17.0
16+
Found existing installation: awswrangler 2.18.0
17+
Uninstalling awswrangler-2.18.0:
18+
Successfully uninstalled awswrangler-2.18.0
1919
Running setup.py develop for awswrangler
2020
Running setup.py install for python-Levenshtein ... error
2121
ERROR: Command errored out with exit status 1:

README.md

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Easy integration with Athena, Glue, Redshift, Timestream, OpenSearch, Neptune, Q
1111

1212
> An [AWS Professional Service](https://aws.amazon.com/professional-services/) open source initiative | [email protected]
1313
14-
[![Release](https://img.shields.io/badge/release-2.17.0-brightgreen.svg)](https://pypi.org/project/awswrangler/)
14+
[![Release](https://img.shields.io/badge/release-2.18.0-brightgreen.svg)](https://pypi.org/project/awswrangler/)
1515
[![Python Version](https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C%203.9%20%7C%203.10-brightgreen.svg)](https://anaconda.org/conda-forge/awswrangler)
1616
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
1717
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
@@ -26,7 +26,7 @@ Easy integration with Athena, Glue, Redshift, Timestream, OpenSearch, Neptune, Q
2626
| **[PyPi](https://pypi.org/project/awswrangler/)** | [![PyPI Downloads](https://pepy.tech/badge/awswrangler)](https://pypi.org/project/awswrangler/) | `pip install awswrangler` |
2727
| **[Conda](https://anaconda.org/conda-forge/awswrangler)** | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/awswrangler.svg)](https://anaconda.org/conda-forge/awswrangler) | `conda install -c conda-forge awswrangler` |
2828

29-
> ⚠️ **For platforms without PyArrow 3 support (e.g. [EMR](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/install.html#emr-cluster), [Glue PySpark Job](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/install.html#aws-glue-pyspark-jobs), MWAA):**<br>
29+
> ⚠️ **For platforms without PyArrow 3 support (e.g. [EMR](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/install.html#emr-cluster), [Glue PySpark Job](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/install.html#aws-glue-pyspark-jobs), MWAA):**<br>
3030
➡️ `pip install pyarrow==2 awswrangler`
3131

3232
Powered By [<img src="https://arrow.apache.org/img/arrow.png" width="200">](https://arrow.apache.org/powered_by/)
@@ -44,7 +44,7 @@ Powered By [<img src="https://arrow.apache.org/img/arrow.png" width="200">](http
4444

4545
Installation command: `pip install awswrangler`
4646

47-
> ⚠️ **For platforms without PyArrow 3 support (e.g. [EMR](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/install.html#emr-cluster), [Glue PySpark Job](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/install.html#aws-glue-pyspark-jobs), MWAA):**<br>
47+
> ⚠️ **For platforms without PyArrow 3 support (e.g. [EMR](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/install.html#emr-cluster), [Glue PySpark Job](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/install.html#aws-glue-pyspark-jobs), MWAA):**<br>
4848
➡️`pip install pyarrow==2 awswrangler`
4949

5050
```py3
@@ -98,17 +98,17 @@ FROM "sampleDB"."sampleTable" ORDER BY time DESC LIMIT 3
9898

9999
## [Read The Docs](https://aws-sdk-pandas.readthedocs.io/)
100100

101-
- [**What is AWS SDK for pandas?**](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/about.html)
102-
- [**Install**](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/install.html)
103-
- [PyPi (pip)](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/install.html#pypi-pip)
104-
- [Conda](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/install.html#conda)
105-
- [AWS Lambda Layer](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/install.html#aws-lambda-layer)
106-
- [AWS Glue Python Shell Jobs](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/install.html#aws-glue-python-shell-jobs)
107-
- [AWS Glue PySpark Jobs](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/install.html#aws-glue-pyspark-jobs)
108-
- [Amazon SageMaker Notebook](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/install.html#amazon-sagemaker-notebook)
109-
- [Amazon SageMaker Notebook Lifecycle](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/install.html#amazon-sagemaker-notebook-lifecycle)
110-
- [EMR](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/install.html#emr)
111-
- [From source](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/install.html#from-source)
101+
- [**What is AWS SDK for pandas?**](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/about.html)
102+
- [**Install**](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/install.html)
103+
- [PyPi (pip)](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/install.html#pypi-pip)
104+
- [Conda](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/install.html#conda)
105+
- [AWS Lambda Layer](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/install.html#aws-lambda-layer)
106+
- [AWS Glue Python Shell Jobs](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/install.html#aws-glue-python-shell-jobs)
107+
- [AWS Glue PySpark Jobs](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/install.html#aws-glue-pyspark-jobs)
108+
- [Amazon SageMaker Notebook](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/install.html#amazon-sagemaker-notebook)
109+
- [Amazon SageMaker Notebook Lifecycle](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/install.html#amazon-sagemaker-notebook-lifecycle)
110+
- [EMR](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/install.html#emr)
111+
- [From source](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/install.html#from-source)
112112
- [**Tutorials**](https://github.com/aws/aws-sdk-pandas/tree/main/tutorials)
113113
- [001 - Introduction](https://github.com/aws/aws-sdk-pandas/blob/main/tutorials/001%20-%20Introduction.ipynb)
114114
- [002 - Sessions](https://github.com/aws/aws-sdk-pandas/blob/main/tutorials/002%20-%20Sessions.ipynb)
@@ -143,29 +143,29 @@ FROM "sampleDB"."sampleTable" ORDER BY time DESC LIMIT 3
143143
- [031 - OpenSearch](https://github.com/aws/aws-sdk-pandas/blob/main/tutorials/031%20-%20OpenSearch.ipynb)
144144
- [032 - Lake Formation Governed Tables](https://github.com/aws/aws-sdk-pandas/blob/main/tutorials/032%20-%20Lake%20Formation%20Governed%20Tables.ipynb)
145145
- [033 - Amazon Neptune](https://github.com/aws/aws-sdk-pandas/blob/main/tutorials/033%20-%20Amazon%20Neptune.ipynb)
146-
- [**API Reference**](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html)
147-
- [Amazon S3](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#amazon-s3)
148-
- [AWS Glue Catalog](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#aws-glue-catalog)
149-
- [Amazon Athena](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#amazon-athena)
150-
- [AWS Lake Formation](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#aws-lake-formation)
151-
- [Amazon Redshift](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#amazon-redshift)
152-
- [PostgreSQL](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#postgresql)
153-
- [MySQL](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#mysql)
154-
- [SQL Server](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#sqlserver)
155-
- [Oracle](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#oracle)
156-
- [Data API Redshift](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#data-api-redshift)
157-
- [Data API RDS](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#data-api-rds)
158-
- [OpenSearch](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#opensearch)
159-
- [Amazon Neptune](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#amazon-neptune)
160-
- [DynamoDB](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#dynamodb)
161-
- [Amazon Timestream](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#amazon-timestream)
162-
- [Amazon EMR](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#amazon-emr)
163-
- [Amazon CloudWatch Logs](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#amazon-cloudwatch-logs)
164-
- [Amazon Chime](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#amazon-chime)
165-
- [Amazon QuickSight](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#amazon-quicksight)
166-
- [AWS STS](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#aws-sts)
167-
- [AWS Secrets Manager](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#aws-secrets-manager)
168-
- [Global Configurations](https://aws-sdk-pandas.readthedocs.io/en/2.17.0/api.html#global-configurations)
146+
- [**API Reference**](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html)
147+
- [Amazon S3](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#amazon-s3)
148+
- [AWS Glue Catalog](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#aws-glue-catalog)
149+
- [Amazon Athena](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#amazon-athena)
150+
- [AWS Lake Formation](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#aws-lake-formation)
151+
- [Amazon Redshift](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#amazon-redshift)
152+
- [PostgreSQL](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#postgresql)
153+
- [MySQL](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#mysql)
154+
- [SQL Server](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#sqlserver)
155+
- [Oracle](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#oracle)
156+
- [Data API Redshift](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#data-api-redshift)
157+
- [Data API RDS](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#data-api-rds)
158+
- [OpenSearch](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#opensearch)
159+
- [Amazon Neptune](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#amazon-neptune)
160+
- [DynamoDB](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#dynamodb)
161+
- [Amazon Timestream](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#amazon-timestream)
162+
- [Amazon EMR](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#amazon-emr)
163+
- [Amazon CloudWatch Logs](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#amazon-cloudwatch-logs)
164+
- [Amazon Chime](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#amazon-chime)
165+
- [Amazon QuickSight](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#amazon-quicksight)
166+
- [AWS STS](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#aws-sts)
167+
- [AWS Secrets Manager](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#aws-secrets-manager)
168+
- [Global Configurations](https://aws-sdk-pandas.readthedocs.io/en/2.18.0/api.html#global-configurations)
169169
- [**License**](https://github.com/aws/aws-sdk-pandas/blob/main/LICENSE.txt)
170170
- [**Contributing**](https://github.com/aws/aws-sdk-pandas/blob/main/CONTRIBUTING.md)
171171

awswrangler/__metadata__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77

88
__title__: str = "awswrangler"
99
__description__: str = "Pandas on AWS."
10-
__version__: str = "2.17.0"
10+
__version__: str = "2.18.0"
1111
__license__: str = "Apache License 2.0"

awswrangler/athena/_read.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -692,11 +692,11 @@ def read_sql_query( # pylint: disable=too-many-arguments,too-many-locals
692692
693693
**Related tutorial:**
694694
695-
- `Amazon Athena <https://aws-sdk-pandas.readthedocs.io/en/2.17.0/
695+
- `Amazon Athena <https://aws-sdk-pandas.readthedocs.io/en/2.18.0/
696696
tutorials/006%20-%20Amazon%20Athena.html>`_
697-
- `Athena Cache <https://aws-sdk-pandas.readthedocs.io/en/2.17.0/
697+
- `Athena Cache <https://aws-sdk-pandas.readthedocs.io/en/2.18.0/
698698
tutorials/019%20-%20Athena%20Cache.html>`_
699-
- `Global Configurations <https://aws-sdk-pandas.readthedocs.io/en/2.17.0/
699+
- `Global Configurations <https://aws-sdk-pandas.readthedocs.io/en/2.18.0/
700700
tutorials/021%20-%20Global%20Configurations.html>`_
701701
702702
**There are three approaches available through ctas_approach and unload_approach parameters:**
@@ -760,7 +760,7 @@ def read_sql_query( # pylint: disable=too-many-arguments,too-many-locals
760760
/athena.html#Athena.Client.get_query_execution>`_ .
761761
762762
For a practical example check out the
763-
`related tutorial <https://aws-sdk-pandas.readthedocs.io/en/2.17.0/
763+
`related tutorial <https://aws-sdk-pandas.readthedocs.io/en/2.18.0/
764764
tutorials/024%20-%20Athena%20Query%20Metadata.html>`_!
765765
766766
@@ -1011,11 +1011,11 @@ def read_sql_table(
10111011
10121012
**Related tutorial:**
10131013
1014-
- `Amazon Athena <https://aws-sdk-pandas.readthedocs.io/en/2.17.0/
1014+
- `Amazon Athena <https://aws-sdk-pandas.readthedocs.io/en/2.18.0/
10151015
tutorials/006%20-%20Amazon%20Athena.html>`_
1016-
- `Athena Cache <https://aws-sdk-pandas.readthedocs.io/en/2.17.0/
1016+
- `Athena Cache <https://aws-sdk-pandas.readthedocs.io/en/2.18.0/
10171017
tutorials/019%20-%20Athena%20Cache.html>`_
1018-
- `Global Configurations <https://aws-sdk-pandas.readthedocs.io/en/2.17.0/
1018+
- `Global Configurations <https://aws-sdk-pandas.readthedocs.io/en/2.18.0/
10191019
tutorials/021%20-%20Global%20Configurations.html>`_
10201020
10211021
**There are two approaches to be defined through ctas_approach parameter:**
@@ -1060,7 +1060,7 @@ def read_sql_table(
10601060
/athena.html#Athena.Client.get_query_execution>`_ .
10611061
10621062
For a practical example check out the
1063-
`related tutorial <https://aws-sdk-pandas.readthedocs.io/en/2.17.0/
1063+
`related tutorial <https://aws-sdk-pandas.readthedocs.io/en/2.18.0/
10641064
tutorials/024%20-%20Athena%20Query%20Metadata.html>`_!
10651065
10661066

awswrangler/s3/_read_parquet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ def read_parquet_table(
864864
This function MUST return a bool, True to read the partition or False to ignore it.
865865
Ignored if `dataset=False`.
866866
E.g ``lambda x: True if x["year"] == "2020" and x["month"] == "1" else False``
867-
https://aws-sdk-pandas.readthedocs.io/en/2.17.0/tutorials/023%20-%20Flexible%20Partitions%20Filter.html
867+
https://aws-sdk-pandas.readthedocs.io/en/2.18.0/tutorials/023%20-%20Flexible%20Partitions%20Filter.html
868868
columns : List[str], optional
869869
Names of columns to read from the file(s).
870870
validate_schema:

awswrangler/s3/_read_text.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def read_csv(
249249
This function MUST return a bool, True to read the partition or False to ignore it.
250250
Ignored if `dataset=False`.
251251
E.g ``lambda x: True if x["year"] == "2020" and x["month"] == "1" else False``
252-
https://aws-sdk-pandas.readthedocs.io/en/2.17.0/tutorials/023%20-%20Flexible%20Partitions%20Filter.html
252+
https://aws-sdk-pandas.readthedocs.io/en/2.18.0/tutorials/023%20-%20Flexible%20Partitions%20Filter.html
253253
pandas_kwargs :
254254
KEYWORD arguments forwarded to pandas.read_csv(). You can NOT pass `pandas_kwargs` explicitly, just add valid
255255
Pandas arguments in the function call and awswrangler will accept it.
@@ -397,7 +397,7 @@ def read_fwf(
397397
This function MUST return a bool, True to read the partition or False to ignore it.
398398
Ignored if `dataset=False`.
399399
E.g ``lambda x: True if x["year"] == "2020" and x["month"] == "1" else False``
400-
https://aws-sdk-pandas.readthedocs.io/en/2.17.0/tutorials/023%20-%20Flexible%20Partitions%20Filter.html
400+
https://aws-sdk-pandas.readthedocs.io/en/2.18.0/tutorials/023%20-%20Flexible%20Partitions%20Filter.html
401401
pandas_kwargs:
402402
KEYWORD arguments forwarded to pandas.read_fwf(). You can NOT pass `pandas_kwargs` explicit, just add valid
403403
Pandas arguments in the function call and awswrangler will accept it.
@@ -549,7 +549,7 @@ def read_json(
549549
This function MUST return a bool, True to read the partition or False to ignore it.
550550
Ignored if `dataset=False`.
551551
E.g ``lambda x: True if x["year"] == "2020" and x["month"] == "1" else False``
552-
https://aws-sdk-pandas.readthedocs.io/en/2.17.0/tutorials/023%20-%20Flexible%20Partitions%20Filter.html
552+
https://aws-sdk-pandas.readthedocs.io/en/2.18.0/tutorials/023%20-%20Flexible%20Partitions%20Filter.html
553553
pandas_kwargs:
554554
KEYWORD arguments forwarded to pandas.read_json(). You can NOT pass `pandas_kwargs` explicit, just add valid
555555
Pandas arguments in the function call and awswrangler will accept it.

awswrangler/s3/_write_parquet.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,18 +302,18 @@ def to_parquet( # pylint: disable=too-many-arguments,too-many-locals,too-many-b
302302
concurrent_partitioning: bool
303303
If True will increase the parallelism level during the partitions writing. It will decrease the
304304
writing time and increase the memory usage.
305-
https://aws-sdk-pandas.readthedocs.io/en/2.17.0/tutorials/022%20-%20Writing%20Partitions%20Concurrently.html
305+
https://aws-sdk-pandas.readthedocs.io/en/2.18.0/tutorials/022%20-%20Writing%20Partitions%20Concurrently.html
306306
mode: str, optional
307307
``append`` (Default), ``overwrite``, ``overwrite_partitions``. Only takes effect if dataset=True.
308308
For details check the related tutorial:
309-
https://aws-sdk-pandas.readthedocs.io/en/2.17.0/tutorials/004%20-%20Parquet%20Datasets.html
309+
https://aws-sdk-pandas.readthedocs.io/en/2.18.0/tutorials/004%20-%20Parquet%20Datasets.html
310310
catalog_versioning : bool
311311
If True and `mode="overwrite"`, creates an archived version of the table catalog before updating it.
312312
schema_evolution : bool
313313
If True allows schema evolution (new or missing columns), otherwise a exception will be raised. True by default.
314314
(Only considered if dataset=True and mode in ("append", "overwrite_partitions"))
315315
Related tutorial:
316-
https://aws-sdk-pandas.readthedocs.io/en/2.17.0/tutorials/014%20-%20Schema%20Evolution.html
316+
https://aws-sdk-pandas.readthedocs.io/en/2.18.0/tutorials/014%20-%20Schema%20Evolution.html
317317
database : str, optional
318318
Glue/Athena catalog: Database name.
319319
table : str, optional

0 commit comments

Comments
 (0)