Skip to content

Commit ba6e9f5

Browse files
committed
Bumping version to 1.10.1
1 parent f693476 commit ba6e9f5

File tree

7 files changed

+17
-5
lines changed

7 files changed

+17
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
> An [AWS Professional Service](https://aws.amazon.com/professional-services/) open source initiative | [email protected]
88
9-
[![Release](https://img.shields.io/badge/release-1.10.0-brightgreen.svg)](https://pypi.org/project/awswrangler/)
9+
[![Release](https://img.shields.io/badge/release-1.10.1-brightgreen.svg)](https://pypi.org/project/awswrangler/)
1010
[![Python Version](https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8-brightgreen.svg)](https://anaconda.org/conda-forge/awswrangler)
1111
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
1212
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

awswrangler/__metadata__.py

+1-1
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 = "1.10.0"
10+
__version__: str = "1.10.1"
1111
__license__: str = "Apache License 2.0"

awswrangler/catalog/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,6 @@
8686
"tables",
8787
"delete_database",
8888
"delete_table_if_exists",
89+
"delete_partitions",
90+
"delete_all_partitions",
8991
]

awswrangler/catalog/_get.py

+5
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,11 @@ def get_engine(
571571
conn_str: str = f"{db_type}+psycopg2://{user}:{password}@{host}:{port}/{database}"
572572
sqlalchemy_kwargs["executemany_mode"] = "values"
573573
sqlalchemy_kwargs["executemany_values_page_size"] = 100_000
574+
if db_type == "redshift":
575+
# pylint: disable=import-outside-toplevel,unused-import
576+
import sqlalchemy_redshift.dialect # noqa: F401
577+
578+
# pylint: enable=import-outside-toplevel,unused-import
574579
return sqlalchemy.create_engine(conn_str, **sqlalchemy_kwargs)
575580
if db_type == "mysql":
576581
conn_str = f"mysql+pymysql://{user}:{password}@{host}:{port}/{database}"

awswrangler/db.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def read_sql_query(
386386
Parameters
387387
----------
388388
sql : str
389-
Pandas DataFrame https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html
389+
SQL query.
390390
con : sqlalchemy.engine.Engine
391391
SQLAlchemy Engine. Please use,
392392
wr.db.get_engine(), wr.db.get_redshift_temp_engine() or wr.catalog.get_engine()
@@ -642,6 +642,11 @@ def get_engine(
642642
conn_str: str = f"{db_type}+psycopg2://{user}:{password}@{host}:{port}/{database}"
643643
sqlalchemy_kwargs["executemany_mode"] = "values"
644644
sqlalchemy_kwargs["executemany_values_page_size"] = 100_000
645+
if db_type == "redshift":
646+
# pylint: disable=import-outside-toplevel,unused-import
647+
import sqlalchemy_redshift.dialect # noqa: F401
648+
649+
# pylint: enable=import-outside-toplevel,unused-import
645650
return sqlalchemy.create_engine(conn_str, **sqlalchemy_kwargs)
646651
if db_type == "mysql":
647652
conn_str = f"mysql+pymysql://{user}:{password}@{host}:{port}/{database}"

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pytest==6.1.2
1010
pytest-cov==2.10.1
1111
pytest-xdist==2.1.0
1212
pytest-timeout==1.4.2
13-
cfn-lint~=0.41.0
13+
cfn-lint~=0.42.0
1414
pydot~=1.4.1
1515
cfn-flip==1.2.3
1616
twine==3.2.0

tests/test_metadata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
def test_metadata():
5-
assert wr.__version__ == "1.10.0"
5+
assert wr.__version__ == "1.10.1"
66
assert wr.__title__ == "awswrangler"
77
assert wr.__description__ == "Pandas on AWS."
88
assert wr.__license__ == "Apache License 2.0"

0 commit comments

Comments
 (0)