Skip to content

feat(datatypes): support fixed length arrays #10929

Open
@dgarridoa

Description

@dgarridoa

What happened?

Hi, the Table.to_polars method cast list type to array type, I would like to preserve the original data type.

Reproducible example:

import ibis
import numpy as np
import polars as pl


ibis.set_backend("polars")

df = pl.DataFrame({x: np.random.random((100, 10)) })
>>> df.schema
Schema([('x', Array(Float64, shape=(10,)))])

t = ibis.memtable(df)
>>> t.schema()
ibis.Schema {
  x  array<float64>
}

>>> t.to_polars().schema
Schema([('x', List(Float64))])

What version of ibis are you using?

ibis-framework==10.0.0

What backend(s) are you using, if any?

polars==1.22.0

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeatures or general enhancements

    Type

    No type

    Projects

    • Status

      backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions