gpt4 book ai didi

apache-flink - Apache 弗林克 : How to query a relational database with the Table API?

转载 作者:行者123 更新时间:2023-12-01 23:15:14 24 4
gpt4 key购买 nike

以下代码片段取自此 blog post :

val sensorTable = ??? // can be a CSV file, Kafka topic, database, or ...

// register the table source
tEnv.registerTableSource("sensors", sensorTable)

我想从关系数据库中读取数据。 Flink 有用于 JDBC 数据库的 TableSource 吗?

最佳答案

在当前版本(1.4.0,2017 年 12 月)中,Flink 不提供内置的 TableSource 来从关系数据库中提取数据。

但是,有一个JDBCInputFormat可以使用。您可以

关于apache-flink - Apache 弗林克 : How to query a relational database with the Table API?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47811022/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com