Skip to content

question #100

@Arnold1

Description

@Arnold1

Hi @fraugster @akrennmair @panamafrancis,

I would like to know how to read the following schema with parquet-go?

message spark_schema {
  optional group foo (LIST) {
    repeated group list {
      optional double element;
    }
  }
  required group bar (LIST) {
    repeated group list {
      required double element;
    }
  }
}

the following seems not to work:

type Record struct {
	Foo FooList `parquet:"foo.list"`
	Bar   BarList   `parquet:"bar.list"`
}

type FooList struct {
	List []FooListList `parquet:"list"`
}

type FooListList struct {
	List []float64 `parquet:"element"`
}

type BarList struct {
	List BidValuesListList `parquet:"list"`
}

type BarListList struct {
	List []float64 `parquet:"element"`
}

while this works fine with github.com/segmentio/parquet-go lib:

type Record struct {
	Foo BarList `parquet:"foo"`
	Bar   BarList   `parquet:"bar"`
}

type FooList struct {
	List []FooListList `parquet:"list"`
}

type FooListList struct {
	List []float64 `parquet:"element"`
}

type BarList struct {
	List BarListList `parquet:"list"`
}

type BarListList struct {
	List []float64 `parquet:"element"`
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions