JuliaData / Feather.jl

Read and write feather files in pure Julia
https://juliadata.github.io/Feather.jl/stable
Other
109 stars 27 forks source link

`writecolumn` method ambiguity for `DateTime` #57

Closed ExpandingMan closed 6 years ago

ExpandingMan commented 6 years ago

When writing a feather with DateTime one gets

ERROR: MethodError: Feather.writecolumn(::Base.AbstractIOBuffer{Array{UInt8,1}}, ::Type{DateTime}, ::Array{Union{DateTime, Nulls.Null},1}) is ambiguous. Candidates:
  writecolumn(io, ::Type{T}, A::Array{Union{Nulls.Null, T},1}) where T in Feather at /home/expandingman/.julia/v0.6/Feather/src/Feather.jl:445
  writecolumn(io, ::Type{DateTime}, A) in Feather at /home/expandingman/.julia/v0.6/Feather/src/Feather.jl:442
Possible fix, define
  writecolumn(::Any, ::Type{DateTime}, ::Array{Union{DateTime, Nulls.Null},1})
ExpandingMan commented 6 years ago

This is gone.