Skip to content

Commit

Permalink
ETL to provide a dabble import from cleaned yahoo XML
Browse files Browse the repository at this point in the history
  • Loading branch information
rick committed Oct 11, 2009
1 parent 33f3746 commit 5766ca1
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions etl/initial/tilonia-yahoo-xml.ctl
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,22 @@ source :in, {
:skip_lines => 1,
},
[
:name,
:discount
:seller, :seller_code, :name, :short, :description, :maker, :maker_code, :images, :image_sizes,
:price, :taxable, :download, :tilonia_code, :related, :orderable, :size, :color,
:fabric, :condition, :keywords, :gift_certificate, :need_shipping, :wholesaleable,
:featured_header, :yahoo_code, :yahoo_category, :yahoo_merchant_category, :yahoo_sale_price,
:yahoo_multi_add, :yahoo_ypath, :yahoo_product_ads_category
]

rename :maker_code, :product_id
rename :seller_code, :product_code
rename :price, :unit_price
rename :maker, :vendor

destination :out, {
:file => '../output/catalog.txt'
:file => '../output/catalog.txt',
:type => 'csv'
},
{
:order => [ :discount, :name ]
:order => [ :product_id, :product_code, :description, :unit_price, :vendor ]
}

0 comments on commit 5766ca1

Please sign in to comment.