Created
June 30, 2015 05:03
-
-
Save umar-webonise/d5cdf1c960e7479eb772 to your computer and use it in GitHub Desktop.
Request to generate etl script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
'source' => { | |
'type' => 'csv', | |
'file' => { | |
'path' => '/home/webonise/Projects/Data-Integration/dump/test.csv' | |
}, | |
'options' => { | |
'col_sep' => ',' | |
} | |
}, | |
'rules' => [ | |
{ | |
'name' => 'rename_field', | |
'options' => { | |
'from' => 'numero_commande', | |
'to' => 'invoice_number' | |
} | |
}, | |
{ | |
'name' => 'rename_field', | |
'options' => { | |
'from' => 'amount_eur', | |
'to' => 'amount_euro' | |
} | |
} | |
], | |
'destination' => { | |
'type' => 'csv', | |
'file' => { | |
'path' => '/home/webonise/Projects/Data-Integration/dump/order.csv' | |
}, | |
'options' => { | |
'col_sep' => ',', | |
'output_fields' => ['invoice_number', 'invoice_date', 'amount_euro'] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment