Consider removing unnecessary projection for single key join followed by .select(pl.len())
#18839
Labels
A-optimizer
Area: plan optimization
accepted
Ready for implementation
enhancement
New feature or an improvement of an existing feature
performance
Performance issues or improvements
Description
I'm unsure why the optimised plan projects 2/3 columns instead of one for this single key join followed by
.select(pl.len())
This example shows a case where I believe only a single column needs to be projected. If I am missing something, or there is some other reason why this needs to happen, then feel free to close this.
DuckDB only projects a single column (the
i
column) from both tablesThe text was updated successfully, but these errors were encountered: