arrow-julia
arrow-julia copied to clipboard
Serialize Month objects
I want to serialize Month and Year etc. They do not have a unique representation in terms of seconds, so I try to serialize them directly.
using Dates, Arrow
ArrowTypes.arrowname(::Type{Dates.Month}) = :Dates_Month
ArrowTypes.JuliaType(::Val{:Dates_Month}) = Dates.Month
Arrow.toarrow(Month(1))
MethodError: Cannot `convert` an object of type Month to an object of type Second