Panic when doing an inner join on two empty DFs #16140
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
Issue description
When trying to do an inner join on two empty DFs, you'll run into a panic. Personally would expect an empty DF with all columns to be returned. Here's a quick example in Colab: https://colab.research.google.com/drive/1q8HS7oX7f-LZzgbvnuGDeG8ZbPq0wj43?usp=sharing. However I also tested this locally on
0.20.25
.Expected behavior
In this case,
resulting_df
would be an empty DF with col1, col2, col3, col4, and col5.Installed versions
The text was updated successfully, but these errors were encountered: