parquet-go icon indicating copy to clipboard operation
parquet-go copied to clipboard

GenericWriter doesn't support maps

Open Pryz opened this issue 3 years ago • 2 comments

The current implementation of the GenericWriter doesn't support the usage of maps within a schema.

Example:

type Span struct {
  ...
  Attributes map[string]json.RawMesssage
}

will panic with panic: cannot convert Go values of type map[string]json.RawMessage to parquet value

Pryz avatar Aug 09 '22 22:08 Pryz

Do you have a code snippet and full stack trace to share?

achille-roussel avatar Aug 10 '22 19:08 achille-roussel

Opened https://github.com/segmentio/parquet-go/pull/313 turns out the issue was not what I was thinking about.

Pryz avatar Aug 19 '22 00:08 Pryz