lib/embulk/input/marketo/base.rb in embulk-input-marketo-0.5.1 vs lib/embulk/input/marketo/base.rb in embulk-input-marketo-0.5.2
- old
+ new
@@ -106,10 +106,10 @@
false
end
end
def cast_value(column, value)
- return unless value
+ return if value.to_s.empty? # nil or empty string
case column["type"].to_s
when "timestamp"
begin
Time.parse(value)