Skip to content

Instantly share code, notes, and snippets.

@muziyoshiz
Created May 30, 2015 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muziyoshiz/b19024673cf69f07d426 to your computer and use it in GitHub Desktop.
Save muziyoshiz/b19024673cf69f07d426 to your computer and use it in GitHub Desktop.
config.yml for using embulk-filter-myapp
in:
type: file
path_prefix: /Users/myoshiz/devel/try1/csv/sample_
decoders:
- {type: gzip}
parser:
charset: UTF-8
newline: CRLF
type: csv
delimiter: ','
quote: '"'
escape: ''
skip_header_lines: 1
allow_extra_columns: false
allow_optional_columns: false
columns:
- {name: id, type: long}
- {name: account, type: string}
- {name: time, type: timestamp, format: '%Y-%m-%d %H:%M:%S'}
- {name: comment, type: string}
filters:
- type: myapp
exec: {}
out: {type: stdout}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment