Thank you very much!
I tried using Flink's SQL JDBC connector, and ran into issues. According to the flink documentation, only the old planner is compatible with the DataSet API.
When I connect to the table:
CREATE TABLE my_table (
....
) WITH (
'connector.type' = 'jdbc',
'connector.url' = '?',
'connector.username' = '?',
'connector.password' = '?',
'connector.table' = 'my_table'
)
It creates a JdbcTableSource, but only BatchTableSource and InputFormatTableSource are supported in BatchTableEnvironment.
By the way, it was very challenging to figure out how to create that connection string, because its a different format than what is in the documentation. I had to comb through JdbcTableSourceSinkFactory to figure out how to connect.
Is it even possible to use the DataSet API with the Table SQL api in Flink 1.12.1?