-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Panic when printing a Struct of Objects #15237
Closed
2 tasks done
Labels
A-dtype-object
Area: object data type
A-dtype-struct
Area: struct data type
A-panic
Area: code that results in panic exceptions
bug
Something isn't working
P-medium
Priority: medium
python
Related to Python Polars
Comments
douglas-raillard-arm
added
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
labels
Mar 22, 2024
You are not calling import polars as pl
pl.DataFrame({
"a": [1],
"schema": {"a": pl.Duration()},
}) However, this is still a segfault which is bad. The primary issue here is actually import polars as pl
df = pl.DataFrame({
"a": [pl.Int32, pl.UInt8],
})
df.select(pl.struct("a")) # segmentation fault |
Indeed, that probably explains why no-one else had reported something similar :) |
stinodego
added
P-low
Priority: low
and removed
needs triage
Awaiting prioritization by a maintainer
labels
Mar 22, 2024
An even simpler reproduction: import polars as pl
obj = object()
df = pl.DataFrame({"a": [obj]})
struct = df.select(pl.struct("a"))
print(struct) # segfault |
stinodego
added
A-dtype-struct
Area: struct data type
A-dtype-object
Area: object data type
and removed
A-input-parsing
Area: parsing input arguments
labels
Apr 11, 2024
ritchie46
changed the title
pl.DataFrame(schema={...: pl.Duration()}) segfaults
pl.DataFrame(schema={...: pl.Duration()}) panics
Apr 15, 2024
stinodego
changed the title
pl.DataFrame(schema={...: pl.Duration()}) panics
Segfault when using a Struct of Objects
Apr 15, 2024
stinodego
changed the title
Segfault when using a Struct of Objects
Panic when printing a Struct of Objects
May 25, 2024
2 tasks
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
A-dtype-object
Area: object data type
A-dtype-struct
Area: struct data type
A-panic
Area: code that results in panic exceptions
bug
Something isn't working
P-medium
Priority: medium
python
Related to Python Polars
Checks
Reproducible example
Log output
Issue description
Creating the DataFrame segfaults when specifying a schema that uses pl.Duration()
Expected behavior
Something else than a segfault
Installed versions
The text was updated successfully, but these errors were encountered: