Hi Leonard,

好的謝謝你的回覆

Regards,


*Hau ChongAih*


On Wed, Apr 21, 2021 at 7:27 PM Leonard Xu <[email protected]> wrote:

> Hi, ChongAih
>
> 你可以参考 JdbcDynamicTableSource [1] 这个 table source 实现了 LookupTableSource
> 接口,你需要写一个类似 JdbcRowDataLookupFunction 即可
> 的函数即可。
>
> 祝好,
> Leonard
> [1]
> https://github.com/apache/flink/blob/4be9aff3eccb3808df1f10ef7c30480ec11a9cb0/flink-connectors/flink-connector-jdbc/src/main/java/org/apache/flink/connector/jdbc/table/JdbcDynamicTableSource.java#L70
>
>
>
> > 在 2021年4月21日,16:04,Chongaih Hau <[email protected]> 写道:
> >
> > hi all,
> >
> > flink在使用temporal join只支持look up table source。我在做單元測試的時候, 下載了hive
> > 表裡面的數據,嘗試了用filesystem註冊temporal table。可是後來發現file system不支持lookup。查詢了文檔(
> >
> https://ci.apache.org/projects/flink/flink-docs-stable/dev/table/legacySourceSinks.html)
> ,用戶可以自定義look
> > up table source。可是我找不到類似用csv設置look up table source的方法。所以想請問有什麼例子我可以參考嗎?
> >
> > Regards,
> >
> >
> > *Hau ChongAih*
>
>

回复