civitaspo / digdag-operator-athena

digdag plugin for operating a query on athena.
Apache License 2.0
23 stars 6 forks source link

digdag-operator-athena

Jitpack CircleCI Digdag

digdag plugin for operating a query on athena.

Overview

Usage

_export:
  plugin:
    repositories:
      - https://jitpack.io
    dependencies:
      - pro.civitaspo:digdag-operator-athena:0.4.0
  athena:
    auth_method: profile

+step1:
  athena.query>: template.sql

+step2:
  echo>: ${athena.last_query}

+stap3:
  athena.ctas>: template.sql
  table: hoge
  location: s3://mybucket/prefix/

See examples for more cases.

Configuration

Remarks

Common Configuration

System Options

Define the below options on properties (which is indicated by -c, --config).

Secrets

Options

Configuration for athena.add_partition> operator

Options

Output Parameters

Nothing

Configuration for athena.drop_partition> operator

Options

Output Parameters

Nothing

Configuration for athena.partition_exists?> operator

Options

Output Parameters

Configuration for athena.apas> operator

apas means Add a partition as select that creates a partition the query result is stored.

Options

Output Parameters

Nothing

Configuration for athena.query> operator

Options

Output Parameters

Configuration for athena.preview> operator

Options

Output Parameters

Configuration for athena.ctas> operator

Options

Output Parameters

Nothing

Configuration for athena.drop_table> operator

Output Parameters

Nothing

Configuration for athena.drop_table_multi> operator

Output Parameters

Nothing

Configuration for athena.table_exists?> operator

Options

Output Parameters

Configuration for athena.each_database> operator

Development

Run an Example

1) build

./gradlew publish

Artifacts are build on local repos: ./build/repo.

2) get your aws profile

aws configure

3) run an example

./example/run.sh

(TODO) Run Tests

./gradlew test

ChangeLog

CHANGELOG.md

License

Apache License 2.0

Author

@civitaspo

Contributor