Hi All,
there is a scenario where I need to process OGG Log data in kafka using Flink Sql. I can convert the OGG Log Stream to DataStream<RowData> and each event has RowKind, but i have trouble converting DataStream<RowData> to a Table. For test, i tried StreamTableEnvironment#fromDataStream and createTemporaryView API, both TableSchema is ``` root |-- f0: LEGACY('RAW', 'ANY<org.apache.flink.table.data.RowData>') ```
i want to get the schema :
``` root |— column1: Type, |— column2: Type, …. ```
how to convert DataStream<RowData> with RowKind to Table?
Thank you very much for your reply |
Hi,
I'm pulling in Timo and Jark as they know Table API better. Regards, Roman On Sun, Apr 11, 2021 at 3:36 PM vtygoss <[hidden email]> wrote: > > Hi All, > > > there is a scenario where I need to process OGG Log data in kafka using Flink Sql. I can convert the OGG Log Stream to DataStream<RowData> and each event has RowKind, but i have trouble converting DataStream<RowData> to a Table. > > For test, i tried StreamTableEnvironment#fromDataStream and createTemporaryView API, both TableSchema is > > ``` > > root > > |-- f0: LEGACY('RAW', 'ANY<org.apache.flink.table.data.RowData>') > > ``` > > > i want to get the schema : > > > ``` > > root > > |— column1: Type, > > |— column2: Type, > > …. > > ``` > > > > how to convert DataStream<RowData> with RowKind to Table? > > > > Thank you very much for your reply > > |
In reply to this post by vtygoss
Hi, Here's an example that works for me:
You can also dig here, you'll probably find better examples Cheers, Svend On Sun, 11 Apr 2021, at 3:35 PM, vtygoss wrote:
|
Free forum by Nabble | Edit this page |