L. C. Hsieh created SPARK-48073:
-----------------------------------
Summary: StateStore schema incompatibility between 3.2 and 3.4
Key: SPARK-48073
URL: https://issues.apache.org/jira/browse/SPARK-48073
Project: Spark
Issue Type: Bug
Components: Structured Streaming
Affects Versions: 3.2.4
Reporter: L. C. Hsieh
One our customer encountered some schema incompatibility problems when
upgrading from Spark 3.2 to 3.4 with structured streaming application.
It seems in 3.4 `Encoders.bean()` includes properties with only getter with or
without setter, whereas in 3.2, only properties with both getter and setter are
included.
For example, here are schemas for an AtomicLong property/field generated by
each version:
3.2:
StructType(StructField(opaque,LongType,true),StructField(plain,LongType,true))
3.4:
StructType(StructField(acquire,LongType,false),StructField(andDecrement,LongType,false),StructField(andIncrement,LongType,false),StructField(opaque,LongType,false),StructField(plain,LongType,false))
Note that the null ability flag also changes.
Primitive long schema has nullable=true in 3.2, but false in 3.4.
I am not sure if the issue is aware by the community before, and if there is
workaround for that?
Thanks.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]