Repository navigation
Commit e63ad80
fix: report LowerEqual cardinality effect for CoalescePartitionsExec with fetch
`CoalescePartitionsExec::cardinality_effect` returned `Equal` even when a
fetch is set, so `PassthroughStatisticsProvider` matched it and copied the
child statistics, discarding the fetch that the operator's own
`statistics_from_inputs` applies. Return `LowerEqual` when a fetch is set,
as `SortExec` and `SortPreservingMergeExec` already do.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 982fca6 commit e63ad80
2 files changed
Lines changed: 38 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
308 | 312 | | |
309 | 313 | | |
310 | 314 | | |
| |||
698 | 702 | | |
699 | 703 | | |
700 | 704 | | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
701 | 722 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1913 | 1913 | | |
1914 | 1914 | | |
1915 | 1915 | | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
1916 | 1932 | | |
1917 | 1933 | | |
1918 | 1934 | | |
| |||
0 commit comments