You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Sergey Nuyanzin (Jira)" <ji...@apache.org> on 2024/09/20 19:54:00 UTC

[jira] [Comment Edited] (FLINK-36318) Fail to restore from 1.18 if LAG function is used

    [ https://issues.apache.org/jira/browse/FLINK-36318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17883375#comment-17883375 ] 

Sergey Nuyanzin edited comment on FLINK-36318 at 9/20/24 7:53 PM:
------------------------------------------------------------------

Merged as 
1.19: [513ed95ffe5cac5f0f229ec66c0d8039fe8ba095|https://github.com/apache/flink/commit/513ed95ffe5cac5f0f229ec66c0d8039fe8ba095]
1.20: [7e955c80ff9fc6dd7c464060443d01472d8b553c|https://github.com/apache/flink/commit/7e955c80ff9fc6dd7c464060443d01472d8b553c]
master: [52e23d57133ac1eb9dde14b9dc1504717c635b9b|https://github.com/apache/flink/commit/52e23d57133ac1eb9dde14b9dc1504717c635b9b]



was (Author: sergey nuyanzin):
Merged as 
1.19: [513ed95ffe5cac5f0f229ec66c0d8039fe8ba095|https://github.com/apache/flink/commit/513ed95ffe5cac5f0f229ec66c0d8039fe8ba095]
1.20: [7e955c80ff9fc6dd7c464060443d01472d8b553c|https://github.com/apache/flink/commit/7e955c80ff9fc6dd7c464060443d01472d8b553c]


> Fail to restore from 1.18 if LAG function is used
> -------------------------------------------------
>
>                 Key: FLINK-36318
>                 URL: https://issues.apache.org/jira/browse/FLINK-36318
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Planner
>    Affects Versions: 1.19.0, 1.20.0, 1.19.1
>            Reporter: Dawid Wysakowicz
>            Assignee: Dawid Wysakowicz
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.19.2, 1.20.1
>
>
> One can not restore from a savepoint taken in 1.18 using Flink 1.19 if a query uses e.g. {{LAG}} function on a {{MAP}} type.
> The reason is {{LAG/LEAD/ARRAY_AGG}} and possibly other functions use {{RAW}} type for accumulator. 
> In https://github.com/apache/flink/blob/d4c9ef165874e665b9e0f70cfe80fc3d387ac58e/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/typeutils/RowDataSerializer.java#L318 we deserialize/serialize types using java serialization which results in serializers being written into the snapshot.
> In 1.19 https://github.com/apache/flink/blob/d4c9ef165874e665b9e0f70cfe80fc3d387ac58e/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/typeutils/MapDataSerializer.java#L54 was modified resulting in a change in {{serialVersionUID}}
> As a result we fail to restore savepoints with a serialVersionUID mismatch.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)