File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,11 @@ df = wr.s3.read_parquet("s3://bucket/dataset/", dataset=True)
5151
5252# Retrieving the data from Amazon Athena
5353df = wr.athena.read_sql_query(" SELECT * FROM my_table" , database = " my_db" )
54+
55+ # Getting Redshift connection (SQLAlchemy) from Glue Catalog Connections
56+ engine = wr.catalog.get_engine(" aws-data-wrangler-redshift" )
57+ # Retrieving the data from Amazon Redshift Spectrum
58+ df = wr.db.read_sql_query(" SELECT * FROM external_schema.my_table" , con = engine)
5459```
5560
5661## [ Read The Docs] ( https://aws-data-wrangler.readthedocs.io/ )
Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ Quick Start
2727 # Retrieving the data from Amazon Athena
2828 df = wr.athena.read_sql_query("SELECT * FROM my_table", database="my_db")
2929
30+ # Getting Redshift connection (SQLAlchemy) from Glue Catalog Connections
31+ engine = wr.catalog.get_engine("aws-data-wrangler-redshift")
32+ # Retrieving the data from Amazon Redshift Spectrum
33+ df = wr.db.read_sql_query("SELECT * FROM external_schema.my_table", con=engine)
34+
3035 Read The Docs
3136-------------
3237
You can’t perform that action at this time.
0 commit comments