You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 21, 2024. It is now read-only.
Here's a rough example of what you could do for sources:
# declare a csv source with automatic fields naming based on first linesource:my_source,:file=>'data_input.csv',:skip_lines=>1,:parser=>:csv# or alternatively, specify the column names yourselfsource:my_source,{:file=>'data_input.csv',:skip_lines=>1,:parser=>:csv},['id','first_name','last_name']
# field-level transformtransform(:full_name)do |name,value,row|
[row[:first_name],row[:last_name]].join(' ')end# row level transformbefore_writedo |row|
row[:full_name]=[row[:first_name],row[:last_name]].join(' ')row# must be returned for row level tranformsend
and for destination (columns are specified with :order, which is a bit confusing at first):
I would like to import three columns from source, make transformations based on all of them but only out put two columns to destination.
How can I do that?
Chris
The text was updated successfully, but these errors were encountered: