Skip to content

Instantly share code, notes, and snippets.

@yaggytter
Created February 25, 2015 05:30
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 yaggytter/5ebb286fe9a6b2d9e9da to your computer and use it in GitHub Desktop.
Save yaggytter/5ebb286fe9a6b2d9e9da to your computer and use it in GitHub Desktop.
embulk_gzipencorder.yml
in:
type: file
path_prefix: /Users/yagasakia/tmp/embulk/embulk-example/csv/sample_
parser:
charset: UTF-8
newline: CRLF
type: csv
delimiter: ','
quote: '"'
escape: ''
null_string: 'NULL'
header_line: true
columns:
- {name: id, type: long}
- {name: account, type: long}
- {name: time, type: timestamp, format: '%Y-%m-%d %H:%M:%S'}
- {name: purchase, type: timestamp, format: '%Y%m%d'}
- {name: comment, type: string}
exec: {}
out:
type: file
path_prefix: ./sampleo
file_ext: .csv.gz
formatter:
type: csv
encoders:
- {type: gzip}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment