Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(datatypes): support fixed length arrays #10929

Open
1 task done
dgarridoa opened this issue Mar 3, 2025 · 1 comment
Open
1 task done

feat(datatypes): support fixed length arrays #10929

dgarridoa opened this issue Mar 3, 2025 · 1 comment
Labels
feature Features or general enhancements

Comments

@dgarridoa
Copy link

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
@dgarridoa dgarridoa added the bug Incorrect behavior inside of ibis label Mar 3, 2025
@cpcloud cpcloud added the feature Features or general enhancements label Mar 3, 2025
@cpcloud cpcloud changed the title bug: to_polars cast array to list feat(datatypes): support fixed length arrays Mar 3, 2025
@cpcloud
Copy link
Member

cpcloud commented Mar 3, 2025

This is working as intended right now, as we don't support fixed length arrays at the moment.

@cpcloud cpcloud removed the bug Incorrect behavior inside of ibis label Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Features or general enhancements
Projects
Status: backlog
Development

No branches or pull requests

2 participants