-
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-36245][FOLLOWUP] Remove the @Deprecated for ArrowSourceFunction and SinkFunction #26297
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -864,7 +864,11 @@ protected DataStream<T> setConnectionType(StreamPartitioner<T> partitioner) { | |
* | ||
* @param sinkFunction The object containing the sink's invoke function. | ||
* @return The closed DataStream. | ||
* @deprecated This method relies on the {@link SinkFunction} API, which is due to be removed. | ||
* Use the {@link #sinkTo(Sink)} method based on the new {@link | ||
* org.apache.flink.api.connector.sink2.Sink} API instead. | ||
*/ | ||
@Deprecated | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To fix the issue.
|
||
public DataStreamSink<T> addSink(SinkFunction<T> sinkFunction) { | ||
|
||
// read the output type of the input Transform to coax out errors about MissingTypeInfo | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -301,6 +301,7 @@ protected <R> SingleOutputStreamOperator<R> doTransform( | |
} | ||
|
||
@Override | ||
@Deprecated | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To fix the issue.
|
||
public DataStreamSink<T> addSink(SinkFunction<T> sinkFunction) { | ||
DataStreamSink<T> result = super.addSink(sinkFunction); | ||
result.getLegacyTransformation().setStateKeySelector(keySelector); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,6 @@ | |
* org.apache.flink.api.connector.sink2.Sink} interface instead. | ||
*/ | ||
@Internal | ||
@Deprecated | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why are we changing this tag? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It should still be deprecated. I remove it since the annotation @deprecated duplicate with the comments @deprecated. And I follow up the #25331 |
||
public interface SinkFunction<IN> extends Function, Serializable { | ||
|
||
/** | ||
|
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.
I see text "due to be removed." It will not be removed until at least Flink v3.
Idoes not look right to have a deprecated method referencing parameters are annotated with internal
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.
Yes. Because the
SinkFunction
will be removed in future versions, this function depends it.ApiAnnotationRules lead to the error https://github.com/apache/flink/pull/26297/files#r1996509218
It means we should add
@Deprecated