Sha256: 579b0d1d836dfb45d8462d65608c5a11340f085575a8df92d16b644f8e9643a8
Contents?: true
Size: 643 Bytes
Versions: 1
Compression:
Stored size: 643 Bytes
Contents
require_relative '../all_jobs_shared' class NvlJob include AllJobsShared define_param :default, '' define_source :source_data, Remi::DataSource::DataFrame, fields: { :field1 => {}, :field2 => {}, :field3 => {} } define_target :target_data, Remi::DataTarget::DataFrame define_transform :main, sources: :source_data, targets: :target_data do Remi::SourceToTargetMap.apply(source_data.df, target_data.df) do map source(:field1, :field2, :field3) .target(:result_field) .transform(Remi::Transform[:nvl].(params[:default])) map source(:field2) .target(:field2_copy) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
remi-0.2.12 | jobs/transforms/nvl_job.rb |