Open kgv opened 2 months ago
Python repro:
import polars as pl
df = pl.LazyFrame({
"u32": [0, 1],
"str": ["a", "b"],
})
(df.select(pl.struct(pl.all()).alias("1"))
.join(
df.select(pl.struct(pl.all()).alias("2")),
how = "cross"
)
.join(
df.select(pl.struct(pl.all()).alias("3")),
how = "cross"
)
.select(pl.concat_list("1", "2", "3"))
.collect()
)
# ShapeError: series length 2 does not match expected length of 8
Add DataFrame::as_single_chunk_par
after last cross_join
, before concat_list
fix this for rust lang.
Checks
Reproducible example
Log output
Issue description
concat_list(["1", "2"])
- OKconcat_list(["1", "3"])
,concat_list(["2", "3"])
- ERRORExpected behavior
created with
cross_join
cartesian product will behave the same as "manual" cartesian product.Installed versions