Commit 7fd81aa
feat: add native Delta Lake scan contrib module (page/row-group pruning + in-scan DVs)
Adds contrib/delta behind a -Pdelta profile: delta-spark keeps all
planning (log replay, snapshot, partition pruning); Comet claims the
DSv1 scan via a new CometScanRuleExtension SPI and reads data through
the same native DataFusion parquet path as CometNativeScanExec,
inheriting row-group stats pruning, page-index pruning, and filter
pushdown. Deletion vectors are decoded natively into per-file
ParquetAccessPlans that intersect with page-index pruning, so deleted
rows are skipped in-scan; DV blob and footer fetches run concurrently
and footers go through the scan's shared FileMetadataCache (no extra
metadata round-trips for DV files). Scalar-subquery data filters are
resolved at execution time and pushed to the native reader — a
capability stock Spark 3.x lacks entirely. Column mapping name mode,
DPP, time travel, checkpoints, schema evolution, and INT96 covered.
The `delta` native feature ships in the default set: runtime stays
double-gated (contrib jar via ServiceLoader + conf), so it is inert for
non-Delta users; roaring is the only net-new default dependency. CI
runs the contrib suites on Spark 3.5/4.0/4.1, byte-compiles the dev
scripts on Python 3.11-3.14, and keeps the feature-off error path
tested.
Verified: 39-test differential suite green on Spark 3.5/4.0/4.1;
Delta's own suites with Comet injected fully green, 1156/1156
(DeletionVectors, TimeTravel, ColumnMapping, DeleteSQL, UpdateSQL,
MergeIntoSQL — one test-only harness patch maps the Comet scan node to
its originalPlan for Delta's ScanReportHelper). Local bench (20M rows,
release): 1.35x vs stock at 9.4% of bytes on literal bounds; 3.35x on
subquery bounds (stock scans 100%, contrib 5%).
Supersedes #4366 (delta-kernel-rs contrib) and #4669 (plain-table
native scan), deliberately building on both.
Co-authored-by: Scott Schenkein <schenksj@yahoo.com>
Co-authored-by: Aditya Vaish <adivaish@microsoft.com>1 parent e095586 commit 7fd81aa
33 files changed
Lines changed: 4555 additions & 260 deletions
File tree
- .github/workflows
- contrib/delta
- dev
- src
- main
- resources/META-INF/services
- scala/org/apache
- comet/contrib/delta
- spark/sql/comet
- test/scala/org/apache/comet/contrib/delta
- dev/ci
- native
- core
- src
- execution
- planner
- parquet
- proto/src/proto
- spark
- src
- main/scala/org/apache/comet
- rules
- serde/operator
- test/scala/org/apache/comet/rules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
140 | | - | |
| 141 | + | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| |||
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
234 | 245 | | |
235 | 246 | | |
236 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
0 commit comments