Sha256: 261c0be51ebf2218b6c4f0a4303f82a3fd50036182e4cc757c18d7612249dd61

Contents?: true

Size: 1.28 KB

Versions: 1

Compression:

Stored size: 1.28 KB

Contents

in:
  type: file
  path_prefix: example/example.csv
  parser:
    type: csv
    charset: UTF-8
    newline: CRLF
    null_string: 'NULL'
    skip_header_lines: 1
    comment_line_marker: '#'
    columns:
      - {name: timestamp, type: timestamp, format: "%Y-%m-%d %H:%M:%S.%N", timezone: "+09:00"}
      - {name: "null",    type: string}
      - {name: long,      type: long}
      - {name: string,    type: string}
      - {name: double,    type: double}
      - {name: json1,     type: json}
      - {name: json2,     type: json}
      - {name: array_str, type: json}
      - {name: array_int, type: json}
      - {name: ignore,    type: timestamp, format: "%Y-%m-%d", timezone: "+09:00"}
      - {name: boolean,   type: boolean}
filters:
  - type: typecast
    columns:
      - {name: timestamp, type: string, format: "%Y-%m-%d %H:%M:%S.%N", timezone: "+09:00"}
      - {name: long,      type: string}
      - {name: string,    type: string}
      - {name: double,    type: string}
      - {name: json1,     type: string}
      - {name: json2,     type: string}
      - {name: boolean,   type: string}
      - {name: "$.json1.string", type: string}
      - {name: "$.json2.long",   type: string}
      - {name: "$.array_str[0]", type: long}
      - {name: "$.array_int[*]", type: string}
out:
  type: "null"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
embulk-filter-typecast-0.1.3 example/example.yml