-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
[FLINK-37541][table-planner] Deprecate getTargetColumns in DynamicTableSink.Context #26381
base: master
Are you sure you want to change the base?
Conversation
This is no detail in the PR or Jira as to why you would like this method deprecated. Please could you add more detail as to why you would like this changed. |
*/ | ||
@Deprecated(since = "2.1") | ||
Optional<int[][]> getTargetColumns(); |
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 a case to want to see the target columns but not write to them? In which case we could keep this method?
Hi @davidradl, the reason why I need to deprecate this method is documented in the FLIP design: https://cwiki.apache.org/confluence/display/FLINK/FLIP-506%3A+Support+Reuse+Multiple+Table+Sinks+in+Planner and discussion thread: https://lists.apache.org/thread/r1wo9sf3d1725fhwzrttvv56k4rc782m. In short, by deprecating target columns in context, we can safely reuse sinks even with different target columns if they haven't implemented the SupportsTargetColumnWriting interface. |
What is the purpose of the change
Deprecate getTargetColumns in DynamicTableSink.Context.
See more in FLIP design https://cwiki.apache.org/confluence/display/FLINK/FLIP-506%3A+Support+Reuse+Multiple+Table+Sinks+in+Planner and discussion thread https://lists.apache.org/thread/r1wo9sf3d1725fhwzrttvv56k4rc782m
Brief change log
Verifying this change
This change is covered by tests, such as (please describe tests).
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: noDocumentation