Purushottam Sinha created FLINK-40631:
-----------------------------------------
Summary: table-planner: CalcRestoreTest calc-variant restore fails
after Variant type evolution (serialVersionUID)
Key: FLINK-40631
URL: https://issues.apache.org/jira/browse/FLINK-40631
Project: Flink
Issue Type: Bug
Components: Table SQL / Planner
Reporter: Purushottam Sinha
h3. Problem
{{CalcRestoreTest.testRestore[10]}} (the {{calc-variant}} program) errors on
master, reddening the {{table}} module CI. The checked-in restore savepoint no
longer deserializes because the {{Variant}} type's {{serialVersionUID}} shifted
as the type gained new accessor methods.
h3. Evidence
* Failure at master {{dd33da5a2da}} (CI run 34506517282):
{noformat}
java.io.InvalidClassException: org.apache.flink.types.variant.Variant; local
class incompatible: stream classdesc serialVersionUID = -1858271569023660977,
local class serialVersionUID = -3681789473927144047
{noformat}
* {{org.apache.flink.types.variant.Variant}} is a {{Serializable}} interface
with no explicit {{serialVersionUID}}, so its auto-computed UID changes
whenever its declared method set changes.
* The {{calc-variant}} savepoint (last regenerated 2026-09-09) predates the
most recent {{Variant}} extension (FLINK-40515, 2026-09-10), so its serialized
UID no longer matches the current class.
h3. Proposed fix
* Regenerate the {{calc-variant}} restore savepoint under
{{flink-table/flink-table-planner/src/test/resources/restore-tests/stream-exec-calc_1/calc-variant/}}
against the current {{Variant}}.
* Optionally, evaluate a stable {{serialVersionUID}} or compatibility path so
{{Variant}} can evolve without invalidating existing state.
h3. Acceptance
* {{CalcRestoreTest}} passes on master; the {{table}} module CI is green.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)