minni31 opened a new pull request, #13659: URL: https://github.com/apache/gluten/pull/13659
## What changes are proposed in this pull request? Follow up on #12631, which left native local scans disabled by default until the row-write path was handled. - Enable `spark.gluten.sql.columnar.localTableScan` by default, preserving the explicit opt-out. - Restore the original Spark `LocalTableScanExec` when a native local scan is immediately converted back to rows. Retain native scans with columnar consumers. - Canonicalize the embedded fallback leaf so cosmetic expression IDs do not prevent equivalent native plans from being reused. - Add default-on, cleanup, canonicalization and writer-plan regression coverage. Share writer tests across Spark 3.4, 3.5, 4.0, 4.1 and 4.2, with AQE and planned writes enabled/disabled. - Update configuration and Velox Delta documentation. ## How was this patch tested? Passed static checks: - `./dev/format-scala-code.sh` - `./dev/format-scala-code.sh check` - `python3 .github/workflows/util/check.py header main --fix` - `python3 .github/workflows/util/check.py header tree backends-velox/src/main/scala/org/apache/gluten/extension` - `python3 .github/workflows/util/check.py header tree gluten-ut/common/src/test/scala/org/apache/spark/sql/execution/datasources` - `git diff --check HEAD` Compilation and Spark runtime tests have not been run locally. This PR remains a draft pending validation of `VeloxLocalTableScanSuite` and `GlutenFileFormatWriterSuite` across the supported Spark profiles. The writer regression checks the actual file-writer plan and written rows. The whole-stage assertion is conditional on codegen mode; the other plan/result assertions remain active for interpreted execution. ## Was this patch authored or co-authored using generative AI tooling? Generated-by: GitHub Copilot CLI 1.0.105 -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
