Commit c2e7680
Combine Equivalence and Ordering equivalence to simplify state (#8006)
* combine equivalence and ordering equivalence
* Remove EquivalenceProperties struct
* Minor changes
* all tests pass
* Refactor oeq
* Simplifications
* Resolve linter errors
* Minor changes
* Minor changes
* Add new tests
* Simplifications window mode selection
* Simplifications
* Use set_satisfy api
* Use utils for aggregate
* Minor changes
* Minor changes
* Minor changes
* All tests pass
* Simplifications
* Simplifications
* Minor changes
* Simplifications
* All tests pass, fix bug
* Remove unnecessary code
* Simplifications
* Minor changes
* Simplifications
* Move oeq join to methods
* Simplifications
* Remove redundant code
* Minor changes
* Minor changes
* Simplifications
* Simplifications
* Simplifications
* Move window to util from method, simplifications
* Simplifications
* Propagate meet in the union
* Simplifications
* Minor changes, rename
* Address berkay reviews
* Simplifications
* Add new buggy test
* Add data test for sort requirement
* Add experimental check
* Add random test
* Minor changes
* Random test gives error
* Fix missing test case
* Minor changes
* Minor changes
* Simplifications
* Minor changes
* Add new test case
* Minor changes
* Address reviews
* Minor changes
* Increase coverage of random tests
* Remove redundant code
* Simplifications
* Simplifications
* Refactor on tests
* Solving clippy errors
* prune_lex improvements
* Fix failing tests
* Update get_finer and get_meet
* Fix window lex ordering implementation
* Buggy state
* Do not use output ordering in the aggregate
* Add union test
* Update comment
* Fix bug, when batch_size is small
* Review Part 1
* Review Part 2
* Change union meet implementation
* Update comments
* Remove redundant check
* Simplify project out_expr function
* Remove Option<Vec<_>> API.
* Do not use project_out_expr
* Simplifications
* Review Part 3
* Review Part 4
* Review Part 5
* Review Part 6
* Review Part 7
* Review Part 8
* Update comments
* Add new unit tests, simplifications
* Resolve linter errors
* Simplify test codes
* Review Part 9
* Add unit tests for remove_redundant entries
* Simplifications
* Review Part 10
* Fix test
* Add new test case, fix implementation
* Review Part 11
* Review Part 12
* Update comments
* Review Part 13
* Review Part 14
* Review Part 15
* Review Part 16
* Review Part 17
* Review Part 18
* Review Part 19
* Review Part 20
* Review Part 21
* Review Part 22
* Review Part 23
* Review Part 24
* Do not construct idx and sort_expr unnecessarily, Update comments, Union meet single entry
* Review Part 25
* Review Part 26
* Name Changes, comment updates
* Review Part 27
* Add issue links
* Address reviews
* Fix failing test
* Update comments
* SortPreservingMerge, SortPreservingRepartition only preserves given expression ordering among input ordering equivalences
---------
Co-authored-by: metesynnada <[email protected]>
Co-authored-by: Mehmet Ozan Kabak <[email protected]>1 parent 2906a24 commit c2e7680
File tree
53 files changed
+3989
-3850
lines changed- .github
- datafusion
- core
- src
- datasource/physical_plan
- physical_optimizer
- tests/fuzz_cases
- physical-expr/src
- expressions
- window
- physical-plan/src
- aggregates
- order
- joins
- repartition
- sorts
- windows
- sqllogictest/test_files
- tpch
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
53 files changed
+3989
-3850
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 35 | + | |
39 | 36 | | |
40 | 37 | | |
41 | 38 | | |
| |||
106 | 103 | | |
107 | 104 | | |
108 | 105 | | |
109 | | - | |
110 | | - | |
| 106 | + | |
| 107 | + | |
111 | 108 | | |
112 | 109 | | |
113 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 34 | + | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
101 | 99 | | |
102 | 100 | | |
103 | 101 | | |
104 | | - | |
105 | | - | |
| 102 | + | |
| 103 | + | |
106 | 104 | | |
107 | 105 | | |
108 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 44 | + | |
47 | 45 | | |
48 | 46 | | |
49 | 47 | | |
| |||
159 | 157 | | |
160 | 158 | | |
161 | 159 | | |
162 | | - | |
163 | | - | |
| 160 | + | |
| 161 | + | |
164 | 162 | | |
165 | 163 | | |
166 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
| 43 | + | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
| |||
122 | 120 | | |
123 | 121 | | |
124 | 122 | | |
125 | | - | |
126 | | - | |
| 123 | + | |
| 124 | + | |
127 | 125 | | |
128 | 126 | | |
129 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
| 48 | + | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| |||
315 | 314 | | |
316 | 315 | | |
317 | 316 | | |
318 | | - | |
319 | | - | |
| 317 | + | |
| 318 | + | |
320 | 319 | | |
321 | 320 | | |
322 | 321 | | |
| |||
Lines changed: 61 additions & 43 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | | - | |
55 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
56 | 56 | | |
57 | | - | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
498 | 497 | | |
499 | 498 | | |
500 | 499 | | |
501 | | - | |
| 500 | + | |
502 | 501 | | |
503 | 502 | | |
504 | 503 | | |
| |||
564 | 563 | | |
565 | 564 | | |
566 | 565 | | |
567 | | - | |
568 | | - | |
| 566 | + | |
569 | 567 | | |
570 | 568 | | |
571 | 569 | | |
572 | 570 | | |
573 | | - | |
574 | 571 | | |
575 | 572 | | |
576 | 573 | | |
| |||
706 | 703 | | |
707 | 704 | | |
708 | 705 | | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
713 | 709 | | |
714 | 710 | | |
715 | 711 | | |
| |||
757 | 753 | | |
758 | 754 | | |
759 | 755 | | |
| 756 | + | |
760 | 757 | | |
761 | 758 | | |
762 | 759 | | |
763 | 760 | | |
764 | 761 | | |
765 | 762 | | |
766 | | - | |
767 | | - | |
| 763 | + | |
| 764 | + | |
768 | 765 | | |
769 | 766 | | |
770 | | - | |
| 767 | + | |
771 | 768 | | |
772 | 769 | | |
773 | | - | |
| 770 | + | |
774 | 771 | | |
775 | 772 | | |
776 | 773 | | |
777 | 774 | | |
778 | 775 | | |
779 | 776 | | |
780 | | - | |
| 777 | + | |
781 | 778 | | |
782 | 779 | | |
783 | 780 | | |
784 | 781 | | |
785 | 782 | | |
786 | 783 | | |
787 | | - | |
| 784 | + | |
788 | 785 | | |
789 | 786 | | |
790 | 787 | | |
791 | | - | |
792 | | - | |
| 788 | + | |
| 789 | + | |
793 | 790 | | |
794 | 791 | | |
795 | 792 | | |
| |||
870 | 867 | | |
871 | 868 | | |
872 | 869 | | |
873 | | - | |
| 870 | + | |
874 | 871 | | |
875 | 872 | | |
876 | 873 | | |
| |||
935 | 932 | | |
936 | 933 | | |
937 | 934 | | |
938 | | - | |
939 | | - | |
940 | | - | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
941 | 938 | | |
942 | 939 | | |
943 | 940 | | |
| |||
1011 | 1008 | | |
1012 | 1009 | | |
1013 | 1010 | | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
1017 | 1014 | | |
1018 | 1015 | | |
1019 | 1016 | | |
| |||
1302 | 1299 | | |
1303 | 1300 | | |
1304 | 1301 | | |
1305 | | - | |
1306 | 1302 | | |
1307 | 1303 | | |
1308 | 1304 | | |
1309 | | - | |
1310 | | - | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
1314 | | - | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
1315 | 1308 | | |
1316 | 1309 | | |
1317 | 1310 | | |
| |||
3763 | 3756 | | |
3764 | 3757 | | |
3765 | 3758 | | |
3766 | | - | |
| 3759 | + | |
3767 | 3760 | | |
3768 | 3761 | | |
3769 | 3762 | | |
3770 | 3763 | | |
3771 | 3764 | | |
3772 | | - | |
3773 | | - | |
| 3765 | + | |
| 3766 | + | |
3774 | 3767 | | |
3775 | 3768 | | |
3776 | 3769 | | |
| |||
3780 | 3773 | | |
3781 | 3774 | | |
3782 | 3775 | | |
3783 | | - | |
| 3776 | + | |
3784 | 3777 | | |
3785 | 3778 | | |
3786 | 3779 | | |
| |||
4357 | 4350 | | |
4358 | 4351 | | |
4359 | 4352 | | |
4360 | | - | |
| 4353 | + | |
4361 | 4354 | | |
4362 | 4355 | | |
4363 | 4356 | | |
4364 | 4357 | | |
4365 | 4358 | | |
4366 | 4359 | | |
4367 | | - | |
4368 | | - | |
| 4360 | + | |
| 4361 | + | |
4369 | 4362 | | |
4370 | 4363 | | |
4371 | | - | |
| 4364 | + | |
4372 | 4365 | | |
4373 | 4366 | | |
4374 | 4367 | | |
4375 | 4368 | | |
4376 | 4369 | | |
4377 | | - | |
| 4370 | + | |
| 4371 | + | |
| 4372 | + | |
| 4373 | + | |
| 4374 | + | |
| 4375 | + | |
| 4376 | + | |
| 4377 | + | |
| 4378 | + | |
| 4379 | + | |
| 4380 | + | |
| 4381 | + | |
| 4382 | + | |
| 4383 | + | |
| 4384 | + | |
| 4385 | + | |
| 4386 | + | |
| 4387 | + | |
| 4388 | + | |
| 4389 | + | |
| 4390 | + | |
| 4391 | + | |
| 4392 | + | |
4378 | 4393 | | |
| 4394 | + | |
4379 | 4395 | | |
4380 | 4396 | | |
4381 | 4397 | | |
4382 | 4398 | | |
| 4399 | + | |
| 4400 | + | |
4383 | 4401 | | |
4384 | 4402 | | |
4385 | 4403 | | |
| |||
0 commit comments