Impossible to create a new column containing a struct with one column containing a datetime literal #19086
Closed
2 tasks done
Labels
accepted
Ready for implementation
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
I tested the code in 1.8.0 and above and it did not work but it seems to work < 1.8.0 (tested on 1.7.1)
Log output
Issue description
When I use datetime object in literal inside a struct, I am getting an error but when I use an existing column from the
df
inside the struct it works along with the datetime literal.This code works:
but this code does not work as expected:
Expected behavior
shape: (2, 3)
┌──────┬─────---─-------------------┐
│ col1 ┆__metadata__ │
│ --- ┆--- │
│ str ┆struct[2] │
╞══════╪══════════════════╡
│ a ┆{2024-10-03 12:23:55.949877 UT… │
│ b ┆{2024-10-03 12:23:55.949877 UT… │
└───┴────-------──────────────┘
Installed versions
The text was updated successfully, but these errors were encountered: