awswrangler.athena.get_named_query_statement

awswrangler.athena.get_named_query_statement(named_query_id: str, boto3_session: Session | None = None) str

Get the named query statement string from a query ID.

Parameters:
  • named_query_id (str) – The unique ID of the query. Used to get the query statement from a saved query. Requires access to the workgroup where the query is saved.

  • boto3_session (Session | None) – The default boto3 session will be used if boto3_session receive None.

Return type:

str

Returns:

The named query statement string