qinjunjerry opened a new pull request #14907:
URL: https://github.com/apache/flink/pull/14907


   ## What is the purpose of the change
   
   This change is to allow users to set DataSource operator names when using 
state processor API. Otherwise, the default DataSource operator name is too 
long, like: 
   `DataSource (at 
write(WritableSavepoint.java:108)(org.apache.flink.api.java.io.CollectionInputFormat))`
   
   ## Brief change log
   
     - change the return type of 
readKeyedState/readListState/readUnionState/readBroadcastState/readWindowOperator
 to DataSource<T> instead of DataSet<T>. This is a compatible change as 
DataSource is a subclass of DataSet.
     - add an operator name when collecting existing operator states
   
   ## Verifying this change
   
   This change is a trivial rework / code cleanup without any test coverage.
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): no
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: yes, but compatible
     - The serializers: no
     - The runtime per-record code paths (performance sensitive): no
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: no
     - The S3 file system connector: no
   
   ## Documentation
   
     - Does this pull request introduce a new feature? Kind of.
     - If yes, how is the feature documented? It allows users to set operator 
names when using state processor API, just like they do in a normal Flink job. 
No additional documentation is needed, I think.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to