LuciferYang opened a new pull request, #60386:
URL: https://github.com/apache/spark/pull/60386

   ### What changes were proposed in this pull request?
   
   This backports #60025 and its follow-up #60374 to branch-4.x as one commit. 
CBO now sees `CHAR` column statistics through read-side padding; see #60025 for 
the details.
   
   The cherry-pick of 185af76e48c conflicted only in 
`docs/sql-migration-guide.md`, since branch-4.x has no "Upgrading from Spark 
SQL 4.4 to 5.0" section. The entry goes at the top of "Upgrading from Spark SQL 
4.3 to 4.4" with the text #60374 gave it on master. The code and tests are 
unchanged.
   
   ### Why are the changes needed?
   
   CHAR columns have lost their CBO statistics since read-side padding was 
added in 3.4.0 (SPARK-40697).
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, as listed in #60025: with CBO on, plans over analyzed CHAR columns can 
change, and the migration guide entry describes this.
   
   ### How was this patch tested?
   
   The tests added in #60025.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Opus 5.5
   


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