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

Panic when there is a shape mismatch in Arrays #18939

Closed
2 tasks done
coastalwhite opened this issue Sep 26, 2024 · 1 comment · Fixed by #18967
Closed
2 tasks done

Panic when there is a shape mismatch in Arrays #18939

coastalwhite opened this issue Sep 26, 2024 · 1 comment · Fixed by #18967
Assignees
Labels
accepted Ready for implementation bug Something isn't working needs triage Awaiting prioritization by a maintainer python Related to Python Polars

Comments

@coastalwhite
Copy link
Collaborator

Checks

  • I have checked that this issue has not already been reported.
  • I have confirmed this bug exists on the latest version of Polars.

Reproducible example

import polars as pl

a = pl.Series('a', [[1], [2]], pl.Array(pl.Int8, 1))
b = pl.Series('b', [[1]], pl.Array(pl.Int8, 1))

c = a == b

Log output

thread '<unnamed>' panicked at crates/polars-compute/src/comparisons/array.rs:36:9:
assertion `left == right` failed
  left: 2
 right: 1

Issue description

Equality of two fixes size arrays with unequal lengths causes a panic.

Expected behavior

No panic

Installed versions

Replace this line with the output of pl.show_versions(). Leave the backticks in place.
@coastalwhite coastalwhite added bug Something isn't working python Related to Python Polars needs triage Awaiting prioritization by a maintainer labels Sep 26, 2024
@coastalwhite
Copy link
Collaborator Author

This is related to broadcasting behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation bug Something isn't working needs triage Awaiting prioritization by a maintainer python Related to Python Polars
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants