This is an automated email from the ASF dual-hosted git repository.

LuciferYang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 9cc70424b195 [SPARK-60810][SQL][DOC][FOLLOWUP] Move the CHAR 
statistics migration guide entry to 4.4
9cc70424b195 is described below

commit 9cc70424b1958306f389a88c238e8367d3443fcf
Author: YangJie <[email protected]>
AuthorDate: Thu Nov 12 15:00:02 2026 +0800

    [SPARK-60810][SQL][DOC][FOLLOWUP] Move the CHAR statistics migration guide 
entry to 4.4
    
    ### What changes were proposed in this pull request?
    
    This moves the migration guide entry added in #60025 from "Upgrading from 
Spark SQL 4.4 to 5.0" to "Upgrading from Spark SQL 4.3 to 4.4" and changes 
"Since Spark 5.0" to "Since Spark 4.4".
    
    ### Why are the changes needed?
    
    SPARK-60810 is being backported to `branch-4.x`, so the change first ships 
in 4.4.0.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No, documentation only.
    
    ### How was this patch tested?
    
    Documentation only.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    Generated-by: Claude Opus 5.5
    
    Closes #60374 from LuciferYang/SPARK-60810-followup.
    
    Authored-by: YangJie <[email protected]>
    Signed-off-by: yangjie01 <[email protected]>
    
    
    skip-checks: true
---
 docs/sql-migration-guide.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/sql-migration-guide.md b/docs/sql-migration-guide.md
index 1efd3ac15fed..593517d4768e 100644
--- a/docs/sql-migration-guide.md
+++ b/docs/sql-migration-guide.md
@@ -24,12 +24,12 @@ license: |
 
 ## Upgrading from Spark SQL 4.4 to 5.0
 
-- Since Spark 5.0, when `spark.sql.cbo.enabled` is `true`, the optimizer 
estimates plans over analyzed `CHAR` columns from their column statistics, as 
it does for `STRING` columns. Since Spark 3.4, read-side `CHAR` padding 
(`spark.sql.readSideCharPadding`, `true` by default) hid these statistics, so, 
for example, a filter on a `CHAR` partition column was estimated to keep every 
row. The estimate assumes evenly distributed values, so for a skewed partition 
it can now be smaller than the d [...]
 - Since Spark 5.0, the Spark Thrift Server refuses to start when 
`hive.server2.enable.doAs` is `true` and `hive.server2.authentication` verifies 
user identities (any recognized type other than `NONE`/`NOSASL`). It 
impersonates the connecting user for Hive metastore calls and driver-side file 
system access, but executor-side data access still runs as the server's own 
service identity, so storage-level permissions are checked against the service 
principal rather than the connecting user (S [...]
 - Since Spark 5.0, Spark requires Java 21 or later. Users who ran Spark 4.x on 
Java 17 can see two differences that come from Java. The datetime pattern 
letter `F` is the aligned week of month instead of the aligned day of week in 
month (JDK-8282081). For example, `date_format(date '2019-12-31', 'F')` returns 
`5` instead of `3`. Converting a `FLOAT` or `DOUBLE` value to a string gives 
the shortest decimal that represents the value (JDK-4511638). For example, 
`CAST(CAST(4567890123456789 A [...]
 
 ## Upgrading from Spark SQL 4.3 to 4.4
 
+- Since Spark 4.4, when `spark.sql.cbo.enabled` is `true`, the optimizer 
estimates plans over analyzed `CHAR` columns from their column statistics, as 
it does for `STRING` columns. Since Spark 3.4, read-side `CHAR` padding 
(`spark.sql.readSideCharPadding`, `true` by default) hid these statistics, so, 
for example, a filter on a `CHAR` partition column was estimated to keep every 
row. The estimate assumes evenly distributed values, so for a skewed partition 
it can now be smaller than the d [...]
 - Since Spark 4.4, a predicate evaluated through generated code outside of 
whole-stage codegen, such as a filter condition with whole-stage codegen 
disabled or a join condition, evaluates a subexpression common to its top-level 
conjuncts, whether several of them share it or one of them repeats it, just 
before the first conjunct that references it, instead of before the whole 
condition. So a `FALSE` conjunct before them stops the evaluation, as `AND` 
does when evaluated directly, and an e [...]
 - Since Spark 4.4, `make_timestamp`, `make_timestamp_ltz` and 
`make_timestamp_ntz` return `NULL` for a seconds value above 2147.483647 or 
below -2147.483648, or raise `DATETIME_FIELD_OUT_OF_BOUNDS` when 
`spark.sql.ansi.enabled` is `true`, as they do for other out-of-range seconds 
such as 61; `try_make_timestamp`, `try_make_timestamp_ltz` and 
`try_make_timestamp_ntz` return `NULL`. Previously, such a value wrapped around 
modulo 2^32 microseconds and could return a wrong timestamp, for exa [...]
 - Since Spark 4.4, dividing an ANSI interval by a number raises 
`INTERVAL_ARITHMETIC_OVERFLOW.WITH_SUGGESTION` (SQLSTATE 22015) whenever the 
result does not fit the interval type, in every evaluation mode. Previously, 
dividing the minimum year-month or day-time interval by `-1` raised 
`ARITHMETIC_OVERFLOW` (SQLSTATE 22003) in generated code, and dividing an 
interval by a decimal or a floating-point number whose quotient, once rounded, 
does not fit the type, or is infinite, raised a `java [...]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to