forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-45632][SQL] Table cache should avoid unnecessary ColumnarToRow…
… when enable AQE ### What changes were proposed in this pull request? If the cache serializer supports columnar input, then we do not need a `ColumnarToRow` before cache data. This pr improves the optimization with AQE enabled. ### Why are the changes needed? Avoid unnecessary ColumnarToRow and make `CachedBatchSerializer` use `convertColumnarBatchToCachedBatch` to cache data. ### Does this PR introduce _any_ user-facing change? no, the default built-in cache serializer do not support columnar input ### How was this patch tested? add test ### Was this patch authored or co-authored using generative AI tooling? no Closes apache#43484 from ulysses-you/columnar-cache. Authored-by: ulysses-you <ulyssesyou18@gmail.com> Signed-off-by: Xiduo You <ulyssesyou@apache.org>
- Loading branch information
1 parent
4385273
commit 6e6aa2e
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters