Sha256: e5f83f77968ac2a89aedafce9df4f88ce88a46693ff64bbffdbbbcc5e323f038

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 KB

Contents

exec:
  max_threads: 1
  min_output_tasks: 1
in:
  type: file
  path_prefix: /home/infoobjects/Downloads/sample/calendarFloat.csv
  parser:
    type: csv
    columns:
      - {name: dim_calendar_key, type: long}
      - {name: year_number, type: long}
      - {name: quarter_number, type: long }
      - {name: attr_1, type: string }
filters:
  - type: csv_lookup
    path_of_lookup_file: /home/infoobjects/GetFiles/countryKey_countryName.csv
    new_columns:
      - { name: country_name, type: string }
      - { name: country_address, type: string }
    mapping_from:
      - quarter_number
      - attr_1
    mapping_to:
      - id
      - country_code
  - type: csv_lookup
    path_of_lookup_file: /home/infoobjects/GetFiles/countryKey_countryName.csv
    new_columns:
      - { name: country_code,type: double }
    mapping_from:
      - quarter_number
      - attr_1
    mapping_to:
      - id
      - country_code
out:
  type: file
  path_prefix: /home/infoobjects/GetFiles/output.csv
  file_ext: csv
  formatter:
    type: csv
    delimiter: "\t"
    newline: CRLF
    newline_in_field: LF
    charset: UTF-8
    quote_policy: MINIMAL
    quote: '"'
    escape: "\\"
    null_string: "\\N"
    default_timezone: 'UTC'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
embulk-filter-csv_lookup-0.1.4 example/config.yml