diff --git a/README.md b/README.md index 91f0eb144..5d0ca9a20 100644 --- a/README.md +++ b/README.md @@ -50,8 +50,10 @@ * Create EMR cluster (For humans) (NEW :star:) * Terminate EMR cluster (NEW :star:) * Get EMR cluster state (NEW :star:) -* Submit EMR step (For humans) (NEW :star:) +* Submit EMR step(s) (For humans) (NEW :star:) * Get EMR step state (NEW :star:) +* Get EMR step state (NEW :star:) +* Athena query to receive the result as python primitives (*Iterable[Dict[str, Any]*) (NEW :star:) ## Installation @@ -282,6 +284,14 @@ cluster_id = session.emr.create_cluster( print(cluster_id) ``` +#### Athena query to receive the result as python primitives (*Iterable[Dict[str, Any]*) + +```py3 +session = awswrangler.Session() +for row in session.athena.query(query="...", database="..."): + print(row) +``` + ## Diving Deep diff --git a/docs/source/examples.rst b/docs/source/examples.rst index 7931d42a0..48d3c3c4c 100644 --- a/docs/source/examples.rst +++ b/docs/source/examples.rst @@ -243,3 +243,12 @@ Create EMR cluster key_pair_name=None, ) print(cluster_id) + +Athena query to receive the result as python primitives (Iterable[Dict[str, Any]) +````````````````````````````````````````````````````````````````````````````````` + +.. code-block:: python + + session = awswrangler.Session() + for row in session.athena.query(query="...", database="..."): + print(row) diff --git a/docs/source/index.rst b/docs/source/index.rst index 8f13279f5..003244f8c 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -42,8 +42,9 @@ General * Create EMR cluster (For humans) (NEW) * Terminate EMR cluster (NEW) * Get EMR cluster state (NEW) -* Submit EMR step (For humans) (NEW) +* Submit EMR step(s) (For humans) (NEW) * Get EMR step state (NEW) +* Athena query to receive the result as python primitives (Iterable[Dict[str, Any]) (NEW) Table Of Contents