Commit 8ec511e
Unnecessary SortExec removal rule from Physical Plan (apache#4691)
* Sort Removal rule initial commit
* move ordering satisfy to the util
* update test and change repartition maintain_input_order impl
* simplifications
* partition by refactor (#28)
* partition by refactor
* minor changes
* Unnecessary tuple to Range conversion is removed
* move transpose under common
* Add naive sort removal rule
* Add todo for finer Sort removal handling
* Refactors to improve readability and reduce nesting
* reverse expr returns Option (no need for support check)
* fix tests
* partition by and order by no longer ends up at the same window group
* Refactor to simplify code
* Better comments, change method names
* Resolve errors introduced by syncing
* address reviews
* address reviews
* Rename to less confusing OptimizeSorts
Co-authored-by: Mehmet Ozan Kabak <ozankabak@gmail.com>1 parent 34475bb commit 8ec511e
File tree
31 files changed
+2017
-378
lines changed- datafusion
- common/src
- core
- src
- execution
- physical_optimizer
- physical_plan
- windows
- tests/sql
- expr/src
- logical_plan
- physical-expr/src
- aggregate
- window
31 files changed
+2017
-378
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| |||
1580 | 1581 | | |
1581 | 1582 | | |
1582 | 1583 | | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
1583 | 1590 | | |
1584 | 1591 | | |
1585 | 1592 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
| 45 | + | |
| 46 | + | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
919 | 918 | | |
920 | 919 | | |
921 | 920 | | |
922 | | - | |
923 | | - | |
924 | | - | |
| 921 | + | |
925 | 922 | | |
926 | 923 | | |
927 | 924 | | |
928 | 925 | | |
929 | 926 | | |
930 | 927 | | |
931 | 928 | | |
932 | | - | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | | - | |
937 | | - | |
938 | | - | |
939 | | - | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | | - | |
957 | | - | |
958 | | - | |
959 | | - | |
960 | | - | |
961 | | - | |
962 | | - | |
963 | | - | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | | - | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | | - | |
986 | | - | |
987 | 929 | | |
988 | 930 | | |
989 | 931 | | |
| |||
1063 | 1005 | | |
1064 | 1006 | | |
1065 | 1007 | | |
1066 | | - | |
1067 | | - | |
1068 | | - | |
1069 | | - | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
1070 | 1012 | | |
1071 | 1013 | | |
1072 | 1014 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
0 commit comments