Connecting the new DataSource API (FLIP-27) with DynamicTableSource

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Connecting the new DataSource API (FLIP-27) with DynamicTableSource

Yuval Itzchakov
Hi,

I've implemented a new custom source using the new DataSource API (https://ci.apache.org/projects/flink/flink-docs-release-1.11/dev/stream/sources.html) and I want to connect it to the new DynamicTableSource API. 

However, in ScanTableSource, the getScanRuntimeProvider method returns a ScanRuntimeProvider interface, which only has an implementation for the old SourceFunction[T], and not for the new Source[T] class:

image.png

Does the Table API not yet support the new Source API? or am I missing something? 

--
Best Regards,
Yuval Itzchakov.
Reply | Threaded
Open this post in threaded view
|

Re: Connecting the new DataSource API (FLIP-27) with DynamicTableSource

Jingsong Li
Hi Yuval,

Yes, The new table source does not support the new Source API in Flink 1.11. The integration is introduced in Flink master (1.12):


Best,
Jingsong

On Sun, Nov 1, 2020 at 10:54 PM Yuval Itzchakov <[hidden email]> wrote:
Hi,

I've implemented a new custom source using the new DataSource API (https://ci.apache.org/projects/flink/flink-docs-release-1.11/dev/stream/sources.html) and I want to connect it to the new DynamicTableSource API. 

However, in ScanTableSource, the getScanRuntimeProvider method returns a ScanRuntimeProvider interface, which only has an implementation for the old SourceFunction[T], and not for the new Source[T] class:

image.png

Does the Table API not yet support the new Source API? or am I missing something? 

--
Best Regards,
Yuval Itzchakov.


--
Best, Jingsong Lee