viirya commented on code in PR #60745:
URL: https://github.com/apache/spark/pull/60745#discussion_r4645207489


##########
docs/sql-migration-guide.md:
##########
@@ -27,6 +27,10 @@ license: |
 - 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 (SPARK-5159). Spark 4.4 logs a 
warning for the same configuration. To restore the previous behavior, set 
`spark.sql.hive.thriftServer.allowIneffectiveDoAs` to `true`. Setting 
`hive.server2.enable.doAs` to `false` also starts the server, but note that it 
stops impersonating metastore calls as well, so it is not a no-op.
 - 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 AS FLOAT) AS STRING)` returns `4.56789E15` instead 
of `4.5678899E15`. A cast from `FLOAT` or `DOUBLE` to `DECIMAL` goes through 
this string, so its result can change as well. For example, 
`CAST(1.0751133388005187E17D AS DECIMAL(38, 0))` returns `107511333880051870` 
instead of `107511333880051872`.
 
+## Upgrading from Spark SQL 4.4 to 4.5

Review Comment:
   Done in 44afae6. Renamed it to "Upgrading from Spark SQL 4.5 to 5.0", and 
updated "Spark 4.4 logs a warning" in the same entry to "Spark 4.4 and 4.5 log 
a warning", since both have the warning.



##########
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala:
##########
@@ -6680,7 +6680,7 @@ object SQLConf {
         "input relation resolves, so errors that leave it unresolved, such as 
a missing " +
         "table, are reported first.")
       .internal()
-      .version("4.4.0")
+      .version("4.5.0")

Review Comment:
   Thanks, confirmed. SPARK-55220 is master-only (fixVersion 5.0.0). A wider 
sweep also found SPARK-58971 (`Series.rank`/`DataFrame.rank` `versionadded:: 
4.4.0`), also master-only. Since these two are 5.0.0 unless backported to 
branch-4.x, while this PR fixes changes already in branch-4.x, I'll handle them 
in a separate JIRA/PR for master.



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