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

pl.element inside list.eval causes ColumnNotFoundError #19317

Closed
2 tasks done
cmdlineluser opened this issue Oct 19, 2024 · 0 comments · Fixed by #19438
Closed
2 tasks done

pl.element inside list.eval causes ColumnNotFoundError #19317

cmdlineluser opened this issue Oct 19, 2024 · 0 comments · Fixed by #19438
Assignees
Labels
accepted Ready for implementation bug Something isn't working needs triage Awaiting prioritization by a maintainer python Related to Python Polars

Comments

@cmdlineluser
Copy link
Contributor

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

s = pl.Series([[1, 2]])
s.list.eval(pl.when(False).then(1).otherwise(pl.element().hash()))
# ColumnNotFoundError: 

Log output

No response

Issue description

On main it produces a ColumnNotFoundError, it runs on 1.9.0.

From what I can gather, it is a side effect of: #19195

The underlying problem is likely relevant to:

#18993 (comment)

we really need to replace that element => col("") hack with a proper Expr::Element type and something that can run it.

Expected behavior

No error.

Installed versions

main
@cmdlineluser cmdlineluser added bug Something isn't working needs triage Awaiting prioritization by a maintainer python Related to Python Polars labels Oct 19, 2024
@c-peters c-peters added the accepted Ready for implementation label Oct 28, 2024
@c-peters c-peters added this to Backlog Oct 28, 2024
@c-peters c-peters moved this to Done in Backlog Oct 28, 2024
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.

3 participants