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

fix(polars): use flatten API for ArrayFlatten implementation to avoid large string upcast #9997

Merged
merged 2 commits into from
Sep 3, 2024

Conversation

cpcloud
Copy link
Member

@cpcloud cpcloud commented Sep 2, 2024

Closes #9995.

@cpcloud cpcloud added bug Incorrect behavior inside of ibis polars The polars backend labels Sep 2, 2024
@cpcloud cpcloud added this to the 9.4 milestone Sep 2, 2024
ibis/backends/tests/test_array.py Outdated Show resolved Hide resolved
@cpcloud cpcloud force-pushed the fix-polars-flatten branch 3 times, most recently from 0646fc1 to 77eaba0 Compare September 3, 2024 10:57
@@ -22,3 +25,14 @@ def test_cannot_run_sql_after_drop(con):
con.drop_table(name)
with pytest.raises(PolarsSQLInterfaceError):
con.sql(sql)


def test_array_flatten(con):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved this here in order to avoid dealing with Snowflake's PyArrow array output, which differs from other backends because of the untyped nature of its arrays.

@gforsyth gforsyth enabled auto-merge (squash) September 3, 2024 14:32
@gforsyth gforsyth merged commit 7a6af8d into ibis-project:main Sep 3, 2024
82 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior inside of ibis polars The polars backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: flatten does not work with polars
3 participants