README.md in embulk-input-randomj-0.5.0 vs README.md in embulk-input-randomj-0.5.1

- old
+ new

@@ -43,28 +43,19 @@ - {name: score, type: long} - {name: time, type: timestamp, format: '%Y-%m-%d %H:%M:%S'} - {name: purchase, type: timestamp, format: '%Y/%m/%d'} ``` -Add `length`, `max_value`, `min_value` option (from 0.3.0) -```yaml -in: - type: randomj - rows: 16 - threads: 1 - primary_key: myid - schema: - - {name: myid, type: long} - - {name: named, type: string, length: 12} - - {name: price, type: long, max_value: 1080, min_value: 100} - - {name: purchase, type: timestamp, format: '%Y/%m/%d'} -``` +- Add `length`, `max_value`, `min_value` option (from 0.3.0) +- Add `null_rate` option (from 0.4.0) + This configuration is that inserted `null` into `price` filed with a probability `8` of 10000. +- Support json type (from 0.5.0) +- Support `start_date` & `end_date` key in **Timestamp** field. -Add `null_rate` option (from 0.4.0) + - Ex1. `{name: created_at, type: timestamp, format: '%Y-%m-%d %H:%M:%S', start_date: 20180331, end_date: 20180430}` + - Ex2. `{name: created_at, type: timestamp, format: '%Y-%m-%d %H:%M:%S', start_date: 20180331}` -This configuration is that inserted `null` into `price` filed with a probability `8` of 10000. - ```yaml in: type: randomj rows: 16 threads: 1 @@ -72,14 +63,14 @@ schema: - {name: myid, type: long} - {name: named, type: string, length: 12} - {name: price, type: long, max_value: 1080, min_value: 100, null_rate: 8} - {name: purchase, type: timestamp, format: '%Y/%m/%d'} + - {name: json_key, type: json, schema: '[{"name": "baz", "type": "array", "items": {"type": "string", "size": 1}}]' } ``` - ## Usage ### Example1 ```shell @@ -199,9 +190,17 @@ $ embulk run -I lib config/example.yml ``` ## ChangeLog + +### 0.5.1 + +- Support start_date & end_date key with Timestamp field. + +### 0.5.0 + +- Support `json` datatype ### v0.4 - Support null_rate parameter