Commit 9c1d2b67 authored by sonots's avatar sonots

Using csv formatter looks enough

parent 8a1771b2
...@@ -6,3 +6,4 @@ ...@@ -6,3 +6,4 @@
/classpath/ /classpath/
build/ build/
.idea .idea
example.txt.out
...@@ -21,18 +21,19 @@ $ embulk gem install embulk-parser-none ...@@ -21,18 +21,19 @@ $ embulk gem install embulk-parser-none
```yaml ```yaml
in: in:
type: any file input plugin type type: file
path_prefix: example.txt
parser: parser:
type: parser type: parser
format: none format: none
message_key: message message_key: message
``` ```
Assume inputs are as following: Assume the input file (example.txt) is as following:
``` ```
foo,bar,baz foo bar baz
foo,bar,baz foo bar baz
``` ```
then this plugin treats as: then this plugin treats as:
...@@ -41,14 +42,23 @@ then this plugin treats as: ...@@ -41,14 +42,23 @@ then this plugin treats as:
+----------------+ +----------------+
| message:string | | message:string |
+----------------+ +----------------+
| foo,bar,baz | | foo bar baz |
| foo,bar,baz | | foo bar baz |
+----------------+ +----------------+
``` ```
## See also To resover a file, you may use csv formatter as:
You may use [embulk-formatter-single_value](https://github.com/sonots/embulk-formatter-single_value) to recover outputs ```
out:
type: file
path_prefix: example.txt
sequence_format: ""
file_ext: .out
formatter:
type: csv
quote_policy: NONE
```
## ChangeLOG ## ChangeLOG
......
...@@ -5,4 +5,10 @@ in: ...@@ -5,4 +5,10 @@ in:
type: none type: none
message_key: message message_key: message
out: out:
type: stdout type: file
path_prefix: example.txt
sequence_format: ""
file_ext: .out
formatter:
type: csv
quote_policy: NONE
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment