Support CROSS JOIN UNNEST()
#21180
Labels
A-sql
Area: Polars SQL functionality
enhancement
New feature or an improvement of an existing feature
Description
Hi everyone! I'm new to Polars, and already enjoying sqling lazyframes. I was trying to unnest a column of array into multiple rows of data, just like what
CROSS JOIN UNNEST()
does in Postgre SQL. So I tried to execute following sql sentence as an example:This example should yield a result like this:
But upon executing this, it throws an error:
Seems that Polars doesn't implement this feature (looks like UNNEST always wants an array), or I just do it in a wrong way. Since this operation doesn't affect the overall schema (i.e. it doesn't add new columns, but rows), it would greatly enhance the sql feature if it's possible to do so.
EDIT: Remove redundant header
The text was updated successfully, but these errors were encountered: