Skip to content

Instantly share code, notes, and snippets.

@umar-webonise
Created June 30, 2015 05:03
Show Gist options
  • Save umar-webonise/d5cdf1c960e7479eb772 to your computer and use it in GitHub Desktop.
Save umar-webonise/d5cdf1c960e7479eb772 to your computer and use it in GitHub Desktop.
Request to generate etl script
{
'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