apache / apache/arrow-julia

Serialize Month objects

Open
#263 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
312
Forks
78
PR merge metrics
No merged PRs in 30d

Description

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.

```jl
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
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running the provided Julia reproduction and inspect the Arrow.toarrow conversion path for Dates.Month, Dates.Year, and related types. Determine how these values should be represented without conversion to Second; done means the reported Month serialization error is resolved and the affected date types serialize successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data-engineering
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.