Github user fanyon commented on the issue:

    https://github.com/apache/flink/pull/3766
  
    @gyfora Thanks for your comment. And right, your question is very good. I 
originally thought that the user must be sure to know all the output topic when 
the job is submitted, but in the real business scenario, the data may be output 
to the dynamically generated topic. 
    
    For the requirementof generate dynamic topic, I propose to adjust the open 
and partition api of KafkaPartitioner as follows:
    1. The open method, remove the parameter int[] partitions, and will be 
opend once for each partitioner
    public void open(int parallelInstanceId, int parallelInstances)
    2. The partition method, add int[] partitions and target topic parameters
    public int partition(T next, byte[] serializedKey, byte[] serializedValue, 
String topic, int[] partitions)
    
    @gyfora @tzulitai What do you think of this? Please feel free to give any 
suggestions, thanks!



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to