Skip to content

Commit

Permalink
Merge pull request #35 from civitaspo/develop
Browse files Browse the repository at this point in the history
v0.1.2
  • Loading branch information
civitaspo authored Dec 7, 2018
2 parents 39fb536 + b14d29a commit 7324d99
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
0.1.2 (2018-12-07)
==================

* [Fix] `athena.ctas>` Use normalized table name by default.

0.1.1 (2018-12-07)
==================

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ _export:
repositories:
- https://jitpack.io
dependencies:
- pro.civitaspo:digdag-operator-athena:0.1.1
- pro.civitaspo:digdag-operator-athena:0.1.2
athena:
auth_method: profile

Expand Down Expand Up @@ -133,7 +133,7 @@ Define the below options on properties (which is indicated by `-c`, `--config`).

- **select_query**: The select SQL statements or file to be executed for a new table by [`Create Table As Select`]((https://aws.amazon.com/jp/about-aws/whats-new/2018/10/athena_ctas_support/)). You can use digdag's template engine like `${...}` in the SQL query. (string, required)
- **database**: The database name for query execution context. (string, optional)
- **table**: The table name for the new table (string, default: `digdag-athena-ctas-${session_uuid}`)
- **table**: The table name for the new table (string, default: `digdag_athena_ctas_${session_uuid.replaceAll("-", "_")}`)
- **output**: Output location for data created by CTAS (string, default: `"s3://aws-athena-query-results-${AWS_ACCOUNT_ID}-<AWS_REGION>/Unsaved/${YEAR}/${MONTH}/${DAY}/${athena_query_id}/"`)
- **format**: The data format for the CTAS query results, such as `"orc"`, `"parquet"`, `"avro"`, `"json"`, or `"textfile"`. (string, default: `"parquet"`)
- **compression**: The compression type to use for `"orc"` or `"parquet"`. (string, default: `"snappy"`)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = 'pro.civitaspo'
version = '0.1.1'
version = '0.1.2'

def digdagVersion = '0.9.27'
def awsSdkVersion = "1.11.372"
Expand Down
2 changes: 1 addition & 1 deletion example/example.dig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _export:
- file://${repos}
# - https://jitpack.io
dependencies:
- pro.civitaspo:digdag-operator-athena:0.1.1
- pro.civitaspo:digdag-operator-athena:0.1.2
athena:
auth_method: profile
value: 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class AthenaCtasOperator(operatorName: String, context: OperatorContext, systemC

protected val selectQueryOrFile: String = params.get("select_query", classOf[String])
protected val database: Optional[String] = params.getOptional("database", classOf[String])
protected val table: String = params.get("table", classOf[String], s"digdag-athena-ctas-$sessionUuid")
protected val table: String = params.get("table", classOf[String], s"digdag_athena_ctas_${sessionUuid.replaceAll("-", "_")}")
protected val output: Optional[String] = params.getOptional("output", classOf[String])
protected val format: String = params.get("format", classOf[String], "parquet")
protected val compression: String = params.get("compression", classOf[String], "snappy")
Expand Down

0 comments on commit 7324d99

Please sign in to comment.