Support Questions
Find answers, ask questions, and share your expertise

Flink Table Api how to connect with relational source?

Solved Go to solution

Flink Table Api how to connect with relational source?

Expert Contributor

Hi ,

I am referring "https://flink.apache.org/news/2017/04/04/dynamic-tables.html" in that database configuration is not shown

`val sensorTable = ??? // can be a CSV file, Kafka topic, database, or ... // register the table source

tEnv.registerTableSource("sensors", sensorTable)

I have to connect with relational source, do Flink have API for database or JDBC approach we need to use ?

(Did we have any similar like for Apache Spark we have sqlcontext or sparksession object )

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Flink Table Api how to connect with relational source?

New Contributor
4 REPLIES 4

Re: Flink Table Api how to connect with relational source?

Expert Contributor

Adding this detail :

In its current version (1.4.0, Dec. 2017), Flink does not provide a built-in TableSource to ingest data from a relational database.

Re: Flink Table Api how to connect with relational source?

New Contributor

Re: Flink Table Api how to connect with relational source?

Expert Contributor

Re: Flink Table Api how to connect with relational source?

Expert Contributor