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

concat failure in 0.20.16rc #15072

Closed
2 tasks done
s-banach opened this issue Mar 14, 2024 · 2 comments · Fixed by #15082
Closed
2 tasks done

concat failure in 0.20.16rc #15072

s-banach opened this issue Mar 14, 2024 · 2 comments · Fixed by #15082
Labels
bug Something isn't working needs triage Awaiting prioritization by a maintainer python Related to Python Polars

Comments

@s-banach
Copy link
Contributor

s-banach commented Mar 14, 2024

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([None, 1]).sort().to_frame("x")
pl.concat([A, A, A])

Log output

PanicException: called `Option::unwrap()` on a `None` value

Issue description

Doesn't crash on 0.20.15.

Expected behavior

No error.

Installed versions

--------Version info---------
Polars:               0.20.16-rc.1
Index type:           UInt32
Platform:             Windows-10-10.0.19045-SP0
Python:               3.11.4 | packaged by conda-forge | (main, Jun 10 2023, 17:59:51) [MSC v.1935 64 bit (AMD64)]

----Optional dependencies----
adbc_driver_manager:  0.5.1
cloudpickle:          <not installed>
connectorx:           <not installed>
deltalake:            <not installed>
fastexcel:            0.9.1
fsspec:               2023.4.0
gevent:               <not installed>
hvplot:               <not installed>
matplotlib:           3.8.2
numpy:                1.25.2
openpyxl:             3.1.2
pandas:               2.2.0
pyarrow:              15.0.0
pydantic:             2.2.1
pyiceberg:            <not installed>
pyxlsb:               <not installed>
sqlalchemy:           2.0.15
xlsx2csv:             0.8.1
xlsxwriter:           3.1.2
@s-banach s-banach added bug Something isn't working needs triage Awaiting prioritization by a maintainer python Related to Python Polars labels Mar 14, 2024
@nameexhaustion
Copy link
Collaborator

nameexhaustion commented Mar 15, 2024

Can you provide the code that creates the data?

This is likely introduced by #15050, but I suspect the culprit is not in the PR itself. There seems to be a sorted flag somewhere that should not have been set.

@s-banach s-banach changed the title concat failure in 0.20.16rc, only happens in pytest concat failure in 0.20.16rc Mar 15, 2024
@s-banach
Copy link
Contributor Author

I have updated the example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage Awaiting prioritization by a maintainer python Related to Python Polars
Projects
None yet
2 participants