Preview Flyte 2 for productionHosted on Union.ai
AWS Athena

AWS Athena

flytekitplugins-athena

FlytekitCloud & Infrastructureawsathenasqlserverless

Flyte backend can be connected with Athena. Once enabled, it allows you to query AWS Athena service (Presto + ANSI SQL Support) and retrieve typed schema (optionally).

Install
pip install flytekitplugins-athena

Quick Start(example, may need adjustment)

See full examples
pip install flytekitplugins-athena

from flytekit import task, workflow
from flytekitplugins.athena import AthenaConfig, AthenaTask

@task(task_config=AthenaTask(...))
def my_task() -> None:
    ...

@workflow
def my_workflow() -> None:
    my_task()

Available Imports (2)

configAthenaConfig

AthenaConfig should be used to configure a Athena Task.

extends dataclass — configuration or data structure for plugin setup

from flytekitplugins.athena import AthenaConfig

taskAthenaTask

This is the simplest form of a Athena Task, that can be used even for tasks that do not produce any output.

extends SQLTask — a flyte task that can be used in workflows

from flytekitplugins.athena import AthenaTask

Related Plugins

Package Info

Min Flytekit1.3.0
Modules2

Downloads

Last day8
Last week218
Last month996