README.md in embulk-input-athena-0.1.2 vs README.md in embulk-input-athena-0.1.4

- old
+ new

@@ -1,7 +1,10 @@ # Athena input plugin for Embulk +[![Gem Version](https://badge.fury.io/rb/embulk-input-athena.svg)](https://badge.fury.io/rb/embulk-input-athena) +[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE) + Athena input plugin for Embulk loads records from Athena(AWS). ## Overview * **Plugin type**: input @@ -10,18 +13,19 @@ * **Guess supported**: no ## Configuration * **driver_path**: path to the jar file of the Athena JDBC driver. If not set, the bundled JDBC driver(AthenaJDBC41-1.1.0.jar) will be used. (string) -* **database**: description (string, required) -* **athena_url**: description (string, required) +* **database**: database name (string, required) +* **athena_url**: Athena url (string, required) * **s3_staging_dir**: The S3 location to which your query output is written, for example s3://query-results-bucket/folder/. (string, required) -* **access_key**: description (string, required) -* **secret_key**: description (string, required) -* **query**: description (string, required) -* **columns**: description (string, required) -* **options**: description (string, default: {}) +* **access_key**: AWS access key (string, required) +* **secret_key**: AWS secret key (string, required) +* **query**: SQL to run (string, required) +* **columns**: columns (string, required) +* **options**: extra JDBC properties (string, default: {}) +* **null_to_zero**: if true, convert long, double and boolean value from null to zero (boolean, default: false) ## Example ```yaml in: @@ -34,9 +38,10 @@ query: | select uid, created_at from log_test.sample columns: - {name: uid, type: string} - {name: created_at, type: timestamp} + null_to_zero: true ``` ## Build ```bash