Skip to content

timestamps are marshaled as non-RFC3339 format despite Go convention of using that format #445

@efd6

Description

@efd6

Describe the bug, including details regarding any error messages, version, and platform.

(*array.Timestamp).MarshalJSON calls (*array.Timestamp).ValueStr via (*array.Timestamp).GetOneForMarshal where the time format layout is "2006-01-02 15:04:05.999999999Z0700" which does not agree with the Go convention of using RFC3339 for JSON-encoded timestamp values (shown here called via time.Time.MarshalJSON).

Doing this breaks downstream users of these JSON documents since most will use encoding/json, which expects valid RFC3339 timestamps (here via here).

Component(s)

Parquet

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions