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

Offset alignment isn't checked in list addition #19025

Closed
2 tasks done
nameexhaustion opened this issue Sep 30, 2024 · 0 comments · Fixed by #19162
Closed
2 tasks done

Offset alignment isn't checked in list addition #19025

nameexhaustion opened this issue Sep 30, 2024 · 0 comments · Fixed by #19162
Assignees
Labels
A-arithmetic Area: arithmetic A-dtype-list/array Area: list/array data type accepted Ready for implementation bug Something isn't working P-high Priority: high python Related to Python Polars

Comments

@nameexhaustion
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, 1], [1, 1, 1]])
b = pl.Series("b", [[1, 1, 1], [1, 1]])

print(a + b)
# shape: (2,)
# Series: 'a' [list[i64]]
# [
# 	[2, 2]
# 	[2, 2, 2]
# ]

Log output

No response

Issue description

Alignment of list offsets isn't checked

Expected behavior

Should raise

Installed versions

main

@nameexhaustion nameexhaustion added bug Something isn't working python Related to Python Polars accepted Ready for implementation labels Sep 30, 2024
@nameexhaustion nameexhaustion self-assigned this Sep 30, 2024
@github-project-automation github-project-automation bot moved this to Ready in Backlog Sep 30, 2024
@orlp orlp added the P-high Priority: high label Oct 1, 2024
@nameexhaustion nameexhaustion added A-dtype-list/array Area: list/array data type A-arithmetic Area: arithmetic labels Oct 5, 2024
@github-project-automation github-project-automation bot moved this from Ready to Done in Backlog Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-arithmetic Area: arithmetic A-dtype-list/array Area: list/array data type accepted Ready for implementation bug Something isn't working P-high Priority: high python Related to Python Polars
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants