Left/right join with single row dataframe with explicit types replaces nulls with default values. #19804
Closed
2 tasks done
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
join parallel: true LEFT join dataframes finished
Issue description
It seems that left joining a dataframe with another one does not yield correct results if the right dataframe has none in rows that have a match and an explicit type is specified via schema_overrides or casting. Not casting the columns yields the correct result.
It's not shown in the example, but reversing the join by doing
df2_casted.join(df, on='k', how='right')
behaves the same.Expected behavior
I would expect the two joins to be equivalent, since by specification in a left join the rows matched should be kept as they are in the original dataframe.
Installed versions
The text was updated successfully, but these errors were encountered: