dongjoon-hyun commented on code in PR #60745:
URL: https://github.com/apache/spark/pull/60745#discussion_r4645132664
##########
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:
**[1] The section above this one is still titled "Upgrading from Spark SQL
4.4 to 5.0" (L25).** With this new section, the guide goes 4.3 -> 4.4 -> 4.5
and then 4.4 -> 5.0. A 4.5 user upgrading to 5.0 finds no section for that
step, and the title suggests that a 4.4 user upgrading to 5.0 needs only the
items in it, not the 4.5 item below. When 4.0 followed 3.5, the section was
"Upgrading from Spark SQL 3.5 to 4.0". L25 is outside this diff, so I left this
here. Could it become "Upgrading from Spark SQL 4.5 to 5.0" in this PR?
##########
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:
**[2] One more conf has the same mislabel:
`spark.sql.experimental.optimizer.transpileNullStrictness` (SPARK-55220) at
L735 is still `.version("4.4.0")`.** SPARK-55220 (749704a4420) was merged to
`master` only, after `branch-4.4` was cut, and it is in neither `branch-4.4`
nor `branch-4.x`. So it is 5.0.0 as it stands, or 4.5.0 if it is backported to
`branch-4.x`. L735 is outside this diff, so I left this here. Could this PR
cover it too, or would you file a separate JIRA?
--
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]