Skip to content

Repeated columns error #2141

@moaxcp

Description

@moaxcp

Hello,

Great library! I am trying to optimize some data by splitting a string into a repeated field but I ran into an issue when using REPEATED. I wrote a small example.

$schema = Schema::with(FlatColumn::string('test'));
$writer = new Writer();
$writer->open('/path/test.parquet', $schema);
$writer->writeRow(['test' => ['one', 'two', 'three']]);
$writer->close();

This results in an error.

TypeError: Flow\Parquet\Dremel\ColumnData\FlatValue::__construct(): Argument #4 ($value) must be of type string|int|float|bool|null, array given

Shouldn't this work or am I using this feature wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions