Alfred
Alfred

Reputation: 1831

Setup Flink application with multiple different SQL query(aggregation)

I need to build a pipeline with different column aggregations from a same source, say, one by userId, another by productId, and etc. I also want to have different granularity aggregations, say, by hourly, daily. Each aggregation will have a different sink, say a different nosql table.

It seems simple to build a SQL query with Table API. But I would like to reduce the operation overhead of managing too many Flink apps. So I am thinking putting all different SQL queries in one pyflink app.

This is first time I build Flink app. So I am not sure how feasible this is. In particular, I'd like to know:

Thanks!

Upvotes: 1

Views: 1369

Answers (1)

David Anderson
David Anderson

Reputation: 43439

You can put multiple queries into one job if you use a statement set: https://docs.ververica.com/user_guide/sql_development/sql_scripts.html

Upvotes: 2

Related Questions