Hello Flink friends, I have a retract stream in the format of 'DataStream<CRow>' that I want to register into my table environment, and also expose processing time column in the table.
For a regular datastream, I have being doing 'tableEnvironment.createTemporaryView(path, dataStream, 'field1,field2, ..,__processing_time_column.proctime')'. with
no issue. But for this retract stream, I was getting an error "org.apache.flink.table.api.ValidationException: Too many fields referenced from an atomic type."
Digging a little bit deeper, in
TypeInfoUtils#extractFieldInformation, it doesn't handle CRowTypeInfo as a known case. Looking at the behavior of
Since it's a standard CompositeType, instead of only handling 'if (inputType
instanceof PojoTypeInfo)',
can we just add CRowTypeInfo here too? Is there any risk that I'm not aware of?
Thank you!
|
Hi, Unfortunately support for consuming upsert stream is not
supported yet. It's not as easy as adding the type information
there as you suggested. Even if you do that it will still be
considered to be an append message internally by the planner.
There is an ongoing effort (FLIP-95[1]) to support it in Flink
1.11.
Best, Dawid
On 13/05/2020 01:03, Jiahui Jiang
wrote:
signature.asc (849 bytes) Download Attachment |
Free forum by Nabble | Edit this page |