FelixYBW opened a new pull request, #13800:
URL: https://github.com/apache/gluten/pull/13800

   ## What changes are proposed in this pull request?
   
   Gluten has no document for how the Velox backend handles `df.cache()` / 
`CACHE TABLE` and `InMemoryTableScanExec`; the only references are the two 
`spark.gluten.sql.columnar.tableCache*` rows in `Configuration.md`. This PR 
adds `docs/backends/velox/velox-columnar-table-cache.md` and links it from the 
mkdocs nav under Velox Backend > Reference.
   
   The document covers:
   
   - How `ColumnarCachedBatchSerializer` is wired in 
(`spark.sql.cache.serializer` is overridden while 
`spark.gluten.sql.columnar.tableCache=true`) and how the planner treats 
`InMemoryTableScanExec` (`batchTypeOf`, `RemoveGlutenTableCacheColumnarToRow`, 
`ExpandFallbackPolicy`).
   - Where serialization is implemented: the Gluten 
`VeloxColumnarBatchSerializer` on top of Velox `PrestoVectorSerde`.
   - The V1, V2 and V3 cached batch formats: frame layouts, what is stored, 
compression, and lazy per-column reads in V3.
   - The read path, including the columnar-to-row conversion that happens 
inside the scan node when a query over a Gluten cache falls back to vanilla 
Spark.
   - Partition statistics and the `buildFilter` safeguards, and Kryo 
serialization.
   - A comparison with Spark's `ArrowCachedBatchSerializer` (SPARK-57268, 
apache/spark#56334).
   
   ## How was this patch tested?
   
   Documentation only. The content was checked against the current `main` 
sources (`ColumnarCachedBatchSerializer.scala`, 
`VeloxColumnarBatchSerializer.{h,cc}`, `JniWrapper.cc`, 
`VeloxListenerApi.scala`, `VeloxBackend.scala`, `MiscColumnarRules.scala`) and 
against the Velox `PrestoSerializer.cpp` single-column serde checks. 
`./.github/workflows/util/check.py header main` passes.
   
   ## Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Claude Opus 5.5)
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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]

Reply via email to