Skip to content

Commit 29f0d26

Browse files
committed
Updating docs
1 parent 5331776 commit 29f0d26

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@
5050
* Create EMR cluster (For humans) (NEW :star:)
5151
* Terminate EMR cluster (NEW :star:)
5252
* Get EMR cluster state (NEW :star:)
53-
* Submit EMR step (For humans) (NEW :star:)
53+
* Submit EMR step(s) (For humans) (NEW :star:)
5454
* Get EMR step state (NEW :star:)
55+
* Get EMR step state (NEW :star:)
56+
* Athena query to receive the result as python primitives (*Iterable[Dict[str, Any]*) (NEW :star:)
5557

5658
## Installation
5759

@@ -282,6 +284,14 @@ cluster_id = session.emr.create_cluster(
282284
print(cluster_id)
283285
```
284286

287+
#### Athena query to receive the result as python primitives (*Iterable[Dict[str, Any]*)
288+
289+
```py3
290+
session = awswrangler.Session()
291+
for row in session.athena.query(query="...", database="..."):
292+
print(row)
293+
```
294+
285295
## Diving Deep
286296

287297

docs/source/examples.rst

+9
Original file line numberDiff line numberDiff line change
@@ -243,3 +243,12 @@ Create EMR cluster
243243
key_pair_name=None,
244244
)
245245
print(cluster_id)
246+
247+
Athena query to receive the result as python primitives (Iterable[Dict[str, Any])
248+
`````````````````````````````````````````````````````````````````````````````````
249+
250+
.. code-block:: python
251+
252+
session = awswrangler.Session()
253+
for row in session.athena.query(query="...", database="..."):
254+
print(row)

docs/source/index.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ General
4242
* Create EMR cluster (For humans) (NEW)
4343
* Terminate EMR cluster (NEW)
4444
* Get EMR cluster state (NEW)
45-
* Submit EMR step (For humans) (NEW)
45+
* Submit EMR step(s) (For humans) (NEW)
4646
* Get EMR step state (NEW)
47+
* Athena query to receive the result as python primitives (Iterable[Dict[str, Any]) (NEW)
4748

4849

4950
Table Of Contents

0 commit comments

Comments
 (0)