Commit 549cf84
Convert first, last aggregate function to UDAF (#10648)
* move out the ordering ruel
Signed-off-by: jayzhan211 <[email protected]>
* introduce rule
Signed-off-by: jayzhan211 <[email protected]>
* revert test result
Signed-off-by: jayzhan211 <[email protected]>
* pass mulit order test
Signed-off-by: jayzhan211 <[email protected]>
* cleanup
Signed-off-by: jayzhan211 <[email protected]>
* with new childes
Signed-off-by: jayzhan211 <[email protected]>
* revert slt
Signed-off-by: jayzhan211 <[email protected]>
* revert back
Signed-off-by: jayzhan211 <[email protected]>
* rm rewrite in new child
Signed-off-by: jayzhan211 <[email protected]>
* backup
Signed-off-by: jayzhan211 <[email protected]>
* only move conversion to optimizer
Signed-off-by: jayzhan211 <[email protected]>
* find test that do reverse
Signed-off-by: jayzhan211 <[email protected]>
* add test for first and last
Signed-off-by: jayzhan211 <[email protected]>
* pass all test
Signed-off-by: jayzhan211 <[email protected]>
* upd test
Signed-off-by: jayzhan211 <[email protected]>
* upd test
Signed-off-by: jayzhan211 <[email protected]>
* cleanup
Signed-off-by: jayzhan211 <[email protected]>
* cleanup
Signed-off-by: jayzhan211 <[email protected]>
* cleanup
Signed-off-by: jayzhan211 <[email protected]>
* add aggregate test
Signed-off-by: jayzhan211 <[email protected]>
* cleanup
Signed-off-by: jayzhan211 <[email protected]>
* final draft
Signed-off-by: jayzhan211 <[email protected]>
* cleanup again
Signed-off-by: jayzhan211 <[email protected]>
* pull out finer ordering code and reuse
Signed-off-by: jayzhan211 <[email protected]>
* clippy
Signed-off-by: jayzhan211 <[email protected]>
* remove finer in optimize rule
Signed-off-by: jayzhan211 <[email protected]>
* add comments and clenaup
Signed-off-by: jayzhan211 <[email protected]>
* rename fun
Signed-off-by: jayzhan211 <[email protected]>
* rename fun
Signed-off-by: jayzhan211 <[email protected]>
* fmt
Signed-off-by: jayzhan211 <[email protected]>
* avoid unnecessary recursion and rename
Signed-off-by: jayzhan211 <[email protected]>
* Minor changes
* Add new API for aggregate optimization
* Minor changes
* Minor changes
* Remove old code
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Update comments
* Minor changes
* Minor changes
* Review Part 1
* TMP
* Update display of aggregate fun exprs
* TMP
* TMP
* Update tests
* TMP buggy
* modify name in place
* Minor changes
* Tmp
* Tmp
* Tmp
* TMP
* Simplifications
* Tmp
* Tmp
* Compiles
* Resolve linter errors
* Resolve linter errors
* Minor changes
* Simplifications
* Minor chagnes
* Move cast to common
* Minor changes
* Fix test
* Minor changes
* Simplifications
* Review
* Address reviews
* Address reviews
* Update documentation, rename method
* Minor changes
---------
Signed-off-by: jayzhan211 <[email protected]>
Co-authored-by: jayzhan211 <[email protected]>
Co-authored-by: berkaysynnada <[email protected]>
Co-authored-by: Mehmet Ozan Kabak <[email protected]>1 parent ae10754 commit 549cf84
File tree
36 files changed
+755
-856
lines changed- datafusion-cli
- datafusion
- core
- src
- physical_optimizer
- expr/src
- type_coercion
- functions-aggregate/src
- optimizer
- src
- physical-expr-common/src
- aggregate
- expressions
- physical-expr/src
- aggregate
- equivalence
- expressions
- physical-plan/src/aggregates
- proto
- proto
- src
- generated
- logical_plan
- physical_plan
- tests/cases
36 files changed
+755
-856
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| |||
Lines changed: 0 additions & 260 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments