Sha256: 004a928032efe8474b9630cff0dbb40084dbdc25028861a140b72dc46f2708ee

Contents?: true

Size: 542 Bytes

Versions: 6

Compression:

Stored size: 542 Bytes

Contents

# puts "executing fixed_width.ctl"

source :in, {
  :file => 'data/sax.xml',
  :parser => :sax
}, 
{
  :write_trigger => 'people/person',
  :fields => {
    :first_name => 'people/person/first_name',
    :last_name => 'people/person/last_name',
    :ssn => 'people/person/social_security_number',
    :age => 'people/person[age]'
  }
}

transform :ssn, :sha1
transform(:ssn){ |v| v[0,24] }
transform :age, :type, {:type => :number}

destination :out, {
  :file => 'output/sax.out.txt'
}, 
{
  :order => [:first_name, :last_name, :ssn, :age]
}

Version data entries

6 entries across 6 versions & 4 rubygems

Version Path
activewarehouse-etl-1.0.0 test/sax.ctl
activewarehouse-etl-1.0.0.rc1 test/sax.ctl
etl-0.9.5.rc1 spec/fixtures/sax.ctl
activewarehouse-etl-sgonyea-0.9.6 test/sax.ctl
activewarehouse-etl-0.9.5.rc1 test/sax.ctl
balinterdi-activewarehouse-etl-0.9.2 test/sax.ctl