Skip to content

Add support for List as a data type in the writer #451

@mkleinbort-ic

Description

@mkleinbort-ic

Feature Request / Improvement

This code does not work:

import polars as pl
df = pl.DataFrame({'x':[[1,2,3]]}, schema={'x':pl.List(pl.Int8)}).to_arrow()

# pyarrow.Table
# x: large_list<item: int8>
#    child 0, item: int8
# ----
# x: [[[1,2,3]]]

table = catalog.create_table(
    "default.test_table_02",
    schema=df.schema,
)

With error

TypeError: Expected primitive type, got: <class 'pyarrow.lib.LargeListType'>

I'd be good to support List data types

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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