You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "mbutrovich (via GitHub)" <gi...@apache.org> on 2026/05/21 20:47:18 UTC

[PR] feat: enable CometLocalTableScanExec by default [datafusion-comet]

mbutrovich opened a new pull request, #4393:
URL: https://github.com/apache/datafusion-comet/pull/4393

   ## Which issue does this PR close?
   
   <!--
   We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
   -->
   
   Closes #4347.
   
   ## Rationale for this change
   
   <!--
    Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed.
    Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes.
   -->
   
   Currently `CometLocalTableScanExec` is disabled by default. A lot of Spark SQL tests (UDFs, expressions) don't write their input to sources that Comet reads natively _(e.g._, Parquet, Iceberg) so they are likely not being exercised through Comet.
   
   ## What changes are included in this PR?
   
   <!--
   There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR.
   -->
   
   Enable `localTableScan` translation to Comet by default.
   
   ## How are these changes tested?
   
   <!--
   We typically require tests for all PRs in order to:
   1. Prevent the code from being accidentally broken by subsequent changes
   2. Serve as another way to document the expected behavior of the code
   
   If tests are not included in your PR, please explain why (for example, are they covered by existing tests)?
   -->
   
   Existing tests.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] feat: enable CometLocalTableScanExec by default [datafusion-comet]

Posted by "github-actions[bot] (via GitHub) via github" <gi...@datafusion.apache.org>.
github-actions[bot] closed pull request #4393: feat: enable CometLocalTableScanExec by default
URL: https://github.com/apache/datafusion-comet/pull/4393


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] feat: enable CometLocalTableScanExec by default [datafusion-comet]

Posted by "mbutrovich (via GitHub)" <gi...@apache.org>.
mbutrovich commented on PR #4393:
URL: https://github.com/apache/datafusion-comet/pull/4393#issuecomment-4557800295

   ## Branch status
   
   JVM and native input now use the canonical Arrow C Stream Interface: `Data.exportArrayStream` on the JVM, `ArrowArrayStreamReader` on the native side. The bespoke `CometBatchIterator` JNI machinery and the `arrow_ffi_safe` flag are gone. Closes #3770. Net diff vs main: ~1070 insertions, ~660 deletions across 35 files.
   
   JVM-side input is unified behind three `ArrowReader` subclasses, replacing the per-shape conversion paths that funneled into `CometBatchIterator`:
   - `RowArrowReader` for `InternalRow` input
   - `SparkColumnarArrowReader` for non-Comet `ColumnarBatch` input
   - `ColumnarBatchArrowReader` for Comet `ColumnarBatch` input
   
   `CometExecRDD` / `CometExecIterator` / `operators.scala` route input slots from the protobuf (`findShuffleScanIndices`) instead of a conf flag, so JVM and native agree on which slot is `ShuffleScan` vs `Scan`. Allocator/reader/stream lifecycle is bound to `TaskContext` with rollback on partial-setup failure.
   
   Native side: `ScanExec.input_source: Option<Arc<Mutex<ArrowArrayStreamReader>>>`. The `arrow_ffi_safe`-gated deep-copy branch is removed; `copy_or_unpack_array` is preserved as the boundary that strips dictionary encoding before downstream DataFusion operators see it.
   
   ## Bucket status
   
   | Bucket | Status |
   |---|---|
   | B1 NullType end-to-end | Landed |
   | B2 TimeType fallback via `DataTypeSupport` | Landed |
   | B3b Iceberg silent corruption | Resolved (consumer-owned reader lifecycle) |
   | B4 Stale window-suite assertion | Landed |
   | B6 Subquery under `CometLocalTableScan` | Expected transitive on B1, pending CI |
   | B3a Nested-type nullability residual | Deferred |
   | B5 Plan-shape / explain / metrics | Deferred, needs skip-list discussion |
   | B7 Long tail | Deferred, individual fixes |
   
   ## Recent fixes since the last CI sweep
   
   ### Dictionary-encoded `ColumnarBatch` input
   
   Native `HashAggregate`'s row converter emits `Dictionary<Int32, T>` columns for string group keys. `CometColumnarShuffle` round-trips them, so the next stage's input is a `CometDictionaryVector`. `ColumnarBatchArrowReader` builds its stable VSR from the logical (non-dict) Spark schema; the unload/load step then trips inside `VectorLoader.loadBuffers` with `no more buffers for field ...: Utf8. Expected 3` before any data reaches the C Stream. Fix: decode dictionary source columns via `DictionaryEncoder.decode` before `VectorUnloader`. Native still unpacks downstream via `copy_or_unpack_array`, so end-to-end semantics are unchanged. Caught by `CometAggregateSuite "multiple column distinct count"`.
   
   ### Shaded `ArrayStreamExporter` `IllegalAccessError`
   
   `org.apache.arrow.c.ArrayStreamExporter$ExportedArrayStreamPrivateData` is already excluded from relocation because Arrow's JNI looks it up by literal classname (`jni_wrapper.cc:341`). The outer `ArrayStreamExporter` was being shaded, which split outer and inner across packages and broke package-private constructor access. Fix: also exclude the outer from relocation. It's `final class` package-private, an implementation detail, no public-API clash risk. Caught by `ParquetEncryptionITCase`.
   
   ## In-flight
   
   Latest commit pushed; CI sweep running. Will update once it settles.
   
   ## Deferred (won't block this PR)
   
   - **B3a, nested struct nullability residual.** Reproducer: `DataFrameSetOperationsSuite "SPARK-35756: unionByName support struct having same col names but different sequence"`. `unionByName` reorders the right side via `named_struct(...)` (children become nullable); the left passes through (children stay non-null); DataFusion strict-validates Union/Project schemas. Only reproduces under the `spark.plugins=...CometPlugin` path; no `CometTestBase` reproducer yet.
   - **B5, plan-shape / explain / metrics assertions** in upstream Spark SQL. ~40 tests grep for Spark-only nodes (`WholeStageCodegen`, `FilterExec`, `BroadcastHashJoinExec`) or codegen-stage IDs Comet operators don't emit. Needs an upstream-test skip list or per-test `spark.comet.exec.localTableScan.enabled=false`.
   - **B7, long tail.** ULP-level float math (asinh / acosh / cosh / tan / cot / cbrt / pow / atan2), `bit_length`/`octet_length` on `BinaryType`, `null IN ()` returning `false` instead of `null`, `RuntimeNullChecksV2Writes` error-class wrapper depth, `to_binary`/`unhex` error class, `collect_set` ordering. Each is a separate fix.
   
   ## Splittable into separate PRs
   
   Once CI is clean these can peel off independently from the `localTableScan` default flip:
   
   1. **NullType end-to-end** (B1): `Utils.scala`, `CometShuffleExchangeExec`, `native/shuffle/src/spark_unsafe/row.rs`, three test suites.
   2. **TimeType fallback via `DataTypeSupport`** (B2): self-contained type-check addition on `CometLocalTableScanExec`.
   3. **Stale window-suite assertion fix** (B4): one-line test fix.
   4. **Arrow C Stream Interface input + close of #3770**: the bulk of this PR. Doesn't strictly require the default flip but unblocks it.
   5. **Default flip for `localTableScan.enabled = true`**: lands last, after B3a residuals are resolved or accepted.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] feat: enable CometLocalTableScanExec by default [datafusion-comet]

Posted by "github-actions[bot] (via GitHub) via github" <gi...@datafusion.apache.org>.
github-actions[bot] commented on PR #4393:
URL: https://github.com/apache/datafusion-comet/pull/4393#issuecomment-6674391453

   Thank you for your contribution. Unfortunately, this pull request is stale because it has been open 60 days with no activity. Please remove the stale label or comment or this will be closed in 7 days.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] feat: enable CometLocalTableScanExec by default [datafusion-comet]

Posted by "mbutrovich (via GitHub)" <gi...@apache.org>.
mbutrovich commented on PR #4393:
URL: https://github.com/apache/datafusion-comet/pull/4393#issuecomment-4518302631

   ## Failure counts
   
   | Log archive | Job set | Failures | Notes |
   |---|---|---|---|
   | `logs_70206724473` | Comet (Linux, Spark 3.4–4.2) | 5 | All same test |
   | `logs_70206740518` | Comet (macOS, Spark 4.0–4.2) | 3 | Same test; no platform-specific issue |
   | `logs_70206737291` | Upstream Spark SQL (3.4.3–4.1.1) | ~691 reported + 5 jobs hit 6h timeout/OOM | True total likely 800–1000 |
   | `logs_70206724472` | Iceberg integration (Spark 3.4/3.5 × Iceberg 1.8/1.9/1.10) | 220 | Silent assertion mismatches; no Comet stack frames |
   
   Clean: `catalyst` modules, all `iceberg-spark-runtime` runs, TPC-DS, TPC-H, Rust tests, lint, native builds, `sql_hive-2`.
   
   ## Root-cause buckets (ranked by blast radius)
   
   ### B1 — `NullType` rejected by `Utils.toArrowType` (~600 failures, ~75–85% of Spark SQL)
   Stack identical across occurrences:
   ```
   java.lang.UnsupportedOperationException: Unsupported data type: NullType
     at org.apache.spark.sql.comet.util.Utils$.toArrowType(Utils.scala:155)
     at CometArrowConverters$ArrowBatchIterBase.<init>(54)
     at CometLocalTableScanExec.doExecuteColumnar(78)
   ```
   Triggers any time `Seq(...).toDF` / `values (..., null)` yields a `void` column, including nested `MapType(_, NullType)` (e.g. `DatasetPrimitiveSuite "special floating point values"`).
   
   Fix options:
   - (a) Reject schemas containing `NullType` (including nested) in the rule that builds `CometLocalTableScanExec`, so plan falls back. Smallest blast radius.
   - (b) Wire `NullType → Arrow Null` in `Utils.toArrowType` (+ corresponding `ArrowWriter` case).
   
   Refs:
   - `spark/src/main/scala/org/apache/spark/sql/comet/util/Utils.scala:155`
   - `spark/src/main/scala/org/apache/spark/sql/comet/execution/arrow/CometArrowConverters.scala:54`
   - `spark/src/main/scala/org/apache/spark/sql/comet/CometLocalTableScanExec.scala:66-81`
   
   ### B2 — `TimeType` rejected (~25 failures, Spark 4.1.x only)
   ```
   SparkException: not support type: TimeType(6)
     at ArrowWriter$.createFieldWriter(ArrowWriters.scala:89)
   ```
   Hits Spark 4.1 TIME-type tests (`SPARK-51402`, `SPARK-52883`, `SPARK-53929`, `SPARK-53109`, `SPARK-53107`, `SPARK-53108`, `SPARK-52626`, `SPARK-52660`, etc.). Same fix shape as B1; fallback is the immediate move since the rest of Comet does not yet support TIME.
   
   Refs:
   - `spark/src/main/scala/org/apache/spark/sql/comet/execution/arrow/ArrowWriters.scala:89`
   
   ### B3 — Nested-type nullability mismatch (~20 Spark SQL + likely root cause of all 220 Iceberg failures)
   DataFusion error shape:
   ```
   Incorrect datatype for StructArray field "nested",
     expected Struct("a": Int32, "b": Int64),
     got      Struct("a": non-null Int32, "b": non-null Int64)
   ```
   `CometArrowConverters` derives child nullability from the Spark schema; downstream native operators were planned against schemas with different child-nullability inference. One side has to normalize.
   
   **Iceberg connection:**
   - Every failing Iceberg test seeds rows via `spark.createDataFrame(input, Employee.class)` (`TestDelete.java:1526`) — a `LocalRelation` that now becomes `CometLocalTableScanExec`.
   - Failures concentrate on the conjunction `branch=test, distributionMode=none, fanout=false, vectorized=true` (other parameterizations of the same test methods pass).
   - Symptoms are silent: assertion failures like `expected:<199> but was:<200>`, `[Snapshot property added-data-files has unexpected value]`, `View should have correct data: expected:<2> but was:<0>`. No exception, no Comet stack frame.
   - `CometLocalTableScanExec.isFfiSafe = false` (line 110) due to array reuse in `CometArrowConverters`. Safe for Comet-native consumers (the native side copies based on the proto flag). Unsafe for non-Comet consumers that buffer batches across `next()` calls. The Iceberg branch-write path likely buffers, which combined with B3-style nullability mismatches could produce the silent loss.
   
   Investigate first:
   - Run `TestCopyOnWriteDelete.testSkewDelete` with the failing parameterization locally; dump physical plan and per-batch row counts.
   - Determine whether Iceberg's DSv2 columnar branch write honors `isFfiSafe=false`, or whether the gap is purely nullability.
   
   Refs:
   - `spark/src/main/scala/org/apache/spark/sql/comet/CometLocalTableScanExec.scala:48-81,110`
   - `spark/src/main/scala/org/apache/comet/serde/operator/CometSink.scala:44,68`
   - Iceberg `spark-extensions` `TestDelete.append(String, Employee...)` (`TestDelete.java:1520-1528`) and `SparkRowLevelOperationsTestBase.createAndInitTable` / `append` / `commitTarget` (`SparkRowLevelOperationsTestBase.java:282,294,433`)
   
   ### B4 — Stale `CometWindowExecSuite` assertion (8 failures: Comet's own suites, all platforms)
   Test: `window function: partition and order expressions`, all 5 Spark versions on Linux + 3 on macOS. Inverted assertion:
   ```scala
   // CometWindowExecSuite.scala:111-119
   } else {
     // we fall back to Spark for shuffle because we do not support
     // native shuffle with a LocalTableScan input, and we do not fall
     // back to Comet columnar shuffle due to
     // https://github.com/apache/datafusion-comet/issues/1248
     assert(cometShuffles.isEmpty)
   }
   ```
   The premise is no longer true; native shuffle now composes with the new local scan.
   
   Action: update the assertion to `cometShuffles.length == 1`, drop the comment, re-evaluate whether #1248 is still relevant. Grep for siblings: `"LocalTableScan input"`, `"issues/1248"`, `"fall back to Spark for shuffle"`.
   
   Refs:
   - `spark/src/test/scala/org/apache/comet/exec/CometWindowExecSuite.scala:108-119`
   
   ### B5 — Plan-shape / explain / metrics assertions in upstream Spark SQL (~40 failures)
   Tests grep the physical plan for Spark-only nodes or check `WholeStageCodegen` / SQL metrics that Comet doesn't emit. Examples:
   - `ExplainSuite "Support ExplainMode in Dataset.explain"`
   - `SQLAppStatusListenerSuite "SPARK-29894 test Codegen Stage Id"`, `"SPARK-32615,SPARK-33016"`
   - `BatchEvalPythonExecSuite "Python UDF: push down deterministic FilterExec predicates"`
   - `JoinHintSuite "broadcast"`, `"shuffle-replicate-nl"`
   - `DataFrameSetOperationsSuite SPARK-37371`
   - `OptimizeLocalRelationsSuite SPARK-25860 / SPARK-33847`
   
   Not Comet defects. Either extend the upstream-test skip list or add per-test config disable for `localTableScan`.
   
   ### B6 — Subquery not found when plan root is `CometLocalTableScan` (~8 failures)
   ```
   CometRuntimeException: Subquery NNN not found for plan MMM
   ```
   Hits `CTEHintSuite "subquery in repartition"`, `SPARK-36447`, `CTE Predicate push-down and column pruning`. Real Comet bug — subquery registration path doesn't handle the new root operator.
   
   ### B7 — Long tail (~20 failures total)
   - ULP-level float math diffs in `MathFunctionsSuite` (`asinh`, `acosh`, `cosh`, `tan`, `cot`, `cbrt`, `pow`, `atan2`, etc.). Known JVM-libm vs Rust-libm gap; no Comet carve-out for upstream suite.
   - `bit_length` / `octet_length` on `BinaryType` rejected by DataFusion's string-only UDF (`SPARK-36751`).
   - `null IN ()` returns `false` in Comet, should be `null` (`EmptyInSuite`).
   - `RuntimeNullChecksV2Writes` expects `SparkRuntimeException`, gets `SparkException` (wrapper depth).
   - `to_binary`/`unhex` error class differs from Spark's `CONVERSION_INVALID_INPUT`.
   - `collect_set` element order differs.
   - 5 Spark SQL shards hit GitHub Actions 6h wall clock / exit 137 — likely cascade from B1 stack-trace volume; should resolve once B1 is fixed.
   
   ## Suggested fix order
   
   | Order | Action | Eliminates | Risk |
   |---|---|---|---|
   | 1 | B1 fallback (NullType in schema) | ~600 + likely unblocks the 5 timed-out shards | Low |
   | 2 | B2 fallback (TimeType in schema) | ~25 | Low |
   | 3 | B3 investigation + fix (Iceberg silent corruption) | 220 + ~20 Spark SQL | Medium (data correctness) |
   | 4 | B4 stale assertion update + sibling grep | 8 | Trivial |
   | 5 | B6 subquery registration | ~8 | Low-medium |
   | 6 | B5 skip list (or per-test config) | ~40 | Low |
   | 7 | B7 individually | ~20 | Varies |
   
   After (1)–(2), failure count should drop from ~1,200 to ~250 and most remaining failures will be the substantive ones.
   
   ## Open questions
   
   - B3: does Iceberg's columnar DSv2 branch-write path honor `setArrowFfiSafe(false)`, or does the contract only apply to native consumers? If only native, `CometLocalTableScanExec` needs to copy batches before exposing them to non-Comet consumers (or be disallowed as a direct columnar input to non-Comet writers).
   - B5: skip list vs per-test disable — preference? A skip list is easier to maintain; per-test config keeps Comet exercised.
   - Whether to keep the default flip in PR #4393 and land fixes incrementally, or to gate the flip behind B1–B3 landing first.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] feat: enable CometLocalTableScanExec by default [datafusion-comet]

Posted by "mbutrovich (via GitHub)" <gi...@apache.org>.
mbutrovich commented on PR #4393:
URL: https://github.com/apache/datafusion-comet/pull/4393#issuecomment-4605953974

   ## CI failure characterization (`logs_71941792087`, 2026-06-02)
   
   **Total: 156 failures**, all confined to upstream **Spark SQL `core` shards** (Spark 3.5.8 and 4.0.2). Clean across the board: Iceberg integration, catalyst, hive, TPC-H/DS, Rust, lint, native builds, and all of Comet's own exec/expressions/shuffle/scans suites. This confirms the big-blast buckets are resolved: B1 (NullType), B2 (TimeType), B3b (Iceberg silent corruption), B4 (window-suite assertion). The ~1,200 -> 156 drop matches the incremental-fix plan.
   
   Failures by shard:
   
   | Shard | Count |
   |---|---|
   | `core-1` Spark 3.5 | 59 |
   | `core-1` Spark 4.0 | 49 |
   | `core-3` Spark 4.0 | 17 |
   | `core-2` Spark 3.5 | 12 |
   | `core-2` Spark 4.0 | 12 |
   | `core-3` Spark 3.5 | 7 |
   
   ### Buckets (mapped to the existing B-scheme)
   
   **B5 plan-shape / explain / metrics assertions (~55, largest remaining, not Comet defects).** Tests grep the physical plan for Spark-only nodes or check codegen/SQL metrics Comet does not emit. Now that LocalTableScan is Comet-native, the plan shows `CometNativeColumnarToRow` / `CometHashAggregate` where the test expects `WholeStageCodegen`, `FilterExec`, `LocalTableScanExec`, etc. Examples: `SPARK-19471 AggregationIterator` (8), `basic` / `SPARK-29894 Codegen Stage Id` / `SPARK-32615 SQLMetrics` (`SQLAppStatusListenerSuite`, 12), Python UDF push-down (`BatchEvalPythonExecSuite`, 8), `join strategy hint` (4), `ReplaceNullWithFalse` SPARK-25860/33847 (4, "is not LocalTableScanExec"), `Support ExplainMode`, `SPARK-37371 UnionExec columnar`, `propagate empty relation`, `repartitionByRange`, `full scan`. This is the deferred B5; needs a skip-list or per-test `localTableScan.enabled=false`.
   
   **B7 long tail (~62).** Several sub-groups, each a pre-existing Comet/Spark-compat gap now exposed because LocalTableScan routes these through Comet:
   
   - collect_set/collect_list ordering (20): `collect functions`, `collect functions structs`, `should be able to cast...`, `SPARK-17641`. Comet returns `[1,3,2]` vs Spark `[1,2,3]`. Unordered-set semantics; cosmetic but fails golden comparison.
   - Math ULP diffs (18): `asinh`, `cosh`, `tan`, `cot`, `atanh`, `cbrt`, `exp`, `pow/power`, `atan2`. JVM-libm vs Rust-libm.
   - `bit_length` / `octet_length` on BinaryType (4, `SPARK-36751`): DataFusion's string-only UDF rejects Binary input.
   - Error-class / exception-wrapper mismatches (~18): Comet throws `CometNativeException` / `SparkException` where Spark expects a specific class. `datetime-formatting-legacy` (`IllegalArgumentException` vs Comet native), `function to_date` / `to_unix_timestamp` (`SparkUpgradeException` expected), `try_aggregates` / `ansi/try_aggregates` (DIVIDE_BY_ZERO error-class format), `to_binary hex` (`CONVERSION_INVALID_INPUT`), `FAILED_EXECUTE_UDF`, `null IN ()` returning `false` not `null`.
   
   **B3a nested-type nullability residual (~14, deferred).** Native asserts on child-field nullability mismatch in array/map kernels. Distinct signatures:
   
   - `spark_array_slice returned List(Int32) ... expected List(Int32, nullable: true)` -> `slice function`
   - `Type mismatch in ArrayInsert: List(Int32) vs List(Int32, nullable: true)` -> `array_insert`, `array prepend (SPARK-41233)`
   - `ListArray expected Struct("key": Int32, "value": Int32) got ... non-null` -> `map with arrays`, `map_entries`
   - plus `flatten`, `array_size`, `cardinality`. Same child-nullability inference gap previously flagged as B3a.
   
   **B6 subquery under `CometLocalTableScan` (~17).** `CometRuntimeException: Subquery NNN not found for plan MMM` (8 native occurrences). Hits `SPARK-36447 With in subquery` (8), `CTE Predicate push-down and column pruning` (8), `subquery in repartition` (1). B6 was expected to resolve transitively on B1 but has **not**; the subquery registration path still does not handle the new root operator. Worth a closer look.
   
   **Possible real correctness regression (2) - flag for investigation.** `group-by-filter.sql` query #36/#37: `COUNT(a) FILTER (WHERE b <= 2)` returns **7** but should be **6**. Unlike the rest of B7 this is a wrong aggregate value, not a cosmetic/error-class diff. The FILTER clause appears to be ignored or mis-evaluated through the Comet aggregate path. This is the one bucket to treat as a genuine bug rather than a test-expectation mismatch.
   
   ### Summary
   
   Flipping `localTableScan` to default-on routes a large swath of upstream Spark SQL tests (UDFs, expressions, plan-inspection tests) through Comet for the first time. The 156 remaining failures split into:
   
   - Not Comet defects (~75): B5 plan-shape assertions + B7 cosmetic (ordering, ULP, error-class). Resolve via skip-list / per-test config.
   - Pre-existing Comet gaps newly exposed (~35): B3a nested nullability, bit/octet on Binary. Each a separate fix.
   - Real bugs to chase (~19): B6 subquery-not-found (17, did not resolve transitively as expected) and the group-by-filter COUNT-FILTER wrong result (2).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org