-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-38765] Fix persisted metadata handling in sink #27301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
...nner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/common/CommonExecSink.java
Outdated
Show resolved
Hide resolved
...lanner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecSink.java
Outdated
Show resolved
Hide resolved
...er/src/test/java/org/apache/flink/table/planner/plan/nodes/exec/stream/SinkTestPrograms.java
Outdated
Show resolved
Hide resolved
...er/src/test/java/org/apache/flink/table/planner/plan/nodes/exec/stream/SinkTestPrograms.java
Outdated
Show resolved
Hide resolved
| * physical columns first, followed by persisted metadata columns. | ||
| */ | ||
| @Override | ||
| protected final RowType getPersistedRowType(ResolvedSchema schema) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there no runtime change necessary?
twalthr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @dawidwys. +1 for this. Please update the release notes and let people know about the past inconsistency and that there is a potential restoring issue but the state was corrupted anyways.
What is the purpose of the change
Fixes a bug where an incorrect type is used in sink for
Verifying this change
Added a test in
SinkTestProgramsDoes this pull request potentially affect one of the following parts:
@Public(Evolving): (yes / no)Documentation