| 
					
	
	 
Hey Community 
Assuming there are 3 groups, 
A, B, C 
Each group represents a set of data about employees and salaries. 
Group A ( 0-20K $) 
Group B (20K$ - 50K$) 
Group C ( > 50K$) 
Is it possible to process stream data from single source containing information about employees and salaries and split the data into different DB schemas
 on the same DB? (Single Sink - Single Connection) 
I Encountered Side output and dynamic tables 
https://ci.apache.org/projects/flink/flink-docs-release-1.13/docs/dev/table/concepts/dynamic_tables/ 
I'm not sure it's the right way. 
If there is a better way , enlighten me 
Thank you, 
Tamir. 
 
  | 
			
| 
					
	
	 Hi Tamir, I assume you want to use the Jdbc connector? You can use three filters on your input stream to separate it into three separate streams, then add a sink to each of those (see e.g. [1]). Then you can have a different SQL statement for each of the three sinks. If you specify the driver name in JdbcConnectionOptions, that driver will be used to obtain a DB connection (see [2]). So if you use a pooling driver (e.g. [3]), connections should automatically be taken from a shared pool. Does that help? Best wishes, Nico On Mon, Jun 7, 2021 at 8:23 AM Tamir Sagi <[hidden email]> wrote: 
  | 
			
| 
					
	
	 Hey,  We had similar problem, but with 1000s of tables. I've created issue [1] and PR with internally used solution [2], but unfortunately, there seems to be no interest in upstreaming this feature. Thanks,  Maciej pon., 7 cze 2021 o 17:15 Nicolaus Weidner <[hidden email]> napisał(a): 
  | 
			
| Free forum by Nabble | Edit this page | 
	
	
		