Commit 0ce62a5
committed
feat: extend WASM compute pushdown to edge pipeline
EdgeScanOperator Parquet path (src/query-do.ts):
- Register decoded columns in WASM and use executeQuery() for SIMD
filter/sort instead of JS row-by-row assembly
- Mark filtersApplied=true so buildEdgePipeline skips FilterOperator
buildEdgePipeline (src/operators.ts):
- Check for filtersApplied flag on scan operator, skip FilterOperator
when scan already handles filters via WASM
unionIndices (wasm/src/wasm/aggregates.zig):
- O(n+m) sorted merge (was O(n*m) nested loop with linear search)1 parent 176a611 commit 0ce62a5
3 files changed
+70
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2162 | 2162 | | |
2163 | 2163 | | |
2164 | 2164 | | |
2165 | | - | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
2166 | 2170 | | |
2167 | 2171 | | |
2168 | 2172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
328 | 330 | | |
329 | 331 | | |
330 | 332 | | |
331 | | - | |
| 333 | + | |
332 | 334 | | |
333 | 335 | | |
334 | 336 | | |
335 | 337 | | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
342 | 347 | | |
343 | | - | |
344 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
345 | 374 | | |
346 | | - | |
| 375 | + | |
347 | 376 | | |
348 | 377 | | |
349 | 378 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
775 | 775 | | |
776 | 776 | | |
777 | 777 | | |
| 778 | + | |
778 | 779 | | |
779 | 780 | | |
780 | 781 | | |
| |||
784 | 785 | | |
785 | 786 | | |
786 | 787 | | |
| 788 | + | |
| 789 | + | |
787 | 790 | | |
788 | | - | |
789 | | - | |
| 791 | + | |
790 | 792 | | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
791 | 811 | | |
792 | 812 | | |
| 813 | + | |
793 | 814 | | |
794 | 815 | | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | | - | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
803 | 819 | | |
| 820 | + | |
804 | 821 | | |
805 | 822 | | |
806 | 823 | | |
| |||
0 commit comments