lib/embulk/input/zendesk/plugin.rb in embulk-input-zendesk-0.1.0 vs lib/embulk/input/zendesk/plugin.rb in embulk-input-zendesk-0.1.1
- old
+ new
@@ -107,9 +107,10 @@
end
def extract_values(record)
values = task[:schema].map do |column|
value = record[column["name"].to_s]
+ next if value.nil?
cast(value, column["type"].to_s)
end
values
end