yaooqinn opened a new pull request, #52037:
URL: https://github.com/apache/spark/pull/52037
### What changes were proposed in this pull request?
This PR adds the SerialVersionUID annotation and moves the newly added
runtimeMap out from the ctor.
### Why are the changes needed?
With a v400 client to a v410 server, ```java.io.InvalidClassException:
org.apache.spark.sql.types.Metadata;``` raised
```
Welcome to
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/___/ .__/\_,_/_/ /_/\_\ version 4.0.0
/_/
Type in expressions to have them evaluated.
Spark connect server version 4.1.0-SNAPSHOT.
Spark session available as 'spark'.
scala> import spark.implicits._
import spark.implicits._
scala> spark.catalog.listCatalogs().map(_.name)
res1: org.apache.spark.sql.connect.Dataset[String] = Invalid Dataframe;
[INTERNAL_ERROR] Failed to unpack scala udf. SQLSTATE: XX000
```
### Does this PR introduce _any_ user-facing change?
no
### How was this patch tested?
```
Welcome to
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/___/ .__/\_,_/_/ /_/\_\ version 4.0.0
/_/
Type in expressions to have them evaluated.
Spark connect server version 4.1.0-SNAPSHOT.
Spark session available as 'spark'.
scala> import spark.implicits._
import spark.implicits._
scala> spark.catalog.listCatalogs().map(_.name)
res1: org.apache.spark.sql.connect.Dataset[String] = [value: string]
scala> spark.catalog.listCatalogs().map(_.name).collect()
res2: Array[String] = Array("spark_catalog")
```
### Was this patch authored or co-authored using generative AI tooling?
<!--
If generative AI tooling has been used in the process of authoring this
patch, please include the
phrase: 'Generated-by: ' followed by the name of the tool and its version.
If no, write 'No'.
Please refer to the [ASF Generative Tooling
Guidance](https://www.apache.org/legal/generative-tooling.html) for details.
-->
No
--
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]