Commit 31a1cb2
Common subexpression elimination in columnar agg (timescale#9534)
1) Use interning to find the identical expression subtrees and replace
them with a canonical pointer.
1) Count how many times each expression is present in the hierarchy.
1) For expression that are present many times, compute them only once
per batch.1 parent a2f66d3 commit 31a1cb2
13 files changed
Lines changed: 1156 additions & 50 deletions
File tree
- .unreleased
- src/compat
- tsl
- src/nodes/vector_agg
- test
- expected
- sql
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
307 | 324 | | |
308 | 325 | | |
309 | 326 | | |
| |||
0 commit comments