Skip to main content

Module apply

Module apply 

Source
Expand description

AWS Athena query execution functionality

This module handles building SQL templates and executing them in AWS Athena. It provides functionality to:

  • Submit queries to Athena
  • Poll for query completion
  • Retrieve query results
  • Extract database context from SQL comments

ยงDatabase Context

You can specify the target database using SQL comments:

-- Database: my_database
CREATE TABLE example (id INT);

or

/* Database: my_database */
CREATE TABLE example (id INT);

Structsยง

Apply

Constantsยง

QUERY_POLL_INTERVAL_SECS ๐Ÿ”’
SQL_STATEMENT_SEPARATOR ๐Ÿ”’

Staticsยง

DATABASE_PATTERNS ๐Ÿ”’

Functionsยง

call
get_database_from_sql ๐Ÿ”’
get_query_execution_context ๐Ÿ”’
get_query_result ๐Ÿ”’
get_result_configuration ๐Ÿ”’
status ๐Ÿ”’
submit_and_wait ๐Ÿ”’
total_execution_time ๐Ÿ”’