Re: Incompatible RAW types in Table API

2021-08-18 Thread Dominik Wosiński
FYI. I've managed to fix that by switching to using `toDataStream`. It seems to be working fine now. I have created the issue about the UDF though, since it seems to be different issue. Not sure if an issue should be created for `toAppendStream` if this is meant to be deprecated. pon., 9 sie 2021

Re: Incompatible RAW types in Table API

2021-08-09 Thread Timo Walther
Sorry, I meant "will be deprecated in Flink 1.14" On 09.08.21 19:32, Timo Walther wrote: Hi Dominik, `toAppendStream` is soft deprecated in Flink 1.13 and will be deprecated in Flink 1.13. It uses the old type system and might not match perfectly with the other reworked type system in new

Re: Incompatible RAW types in Table API

2021-08-09 Thread Timo Walther
Hi Dominik, `toAppendStream` is soft deprecated in Flink 1.13 and will be deprecated in Flink 1.13. It uses the old type system and might not match perfectly with the other reworked type system in new functions and sources. For SQL, a lot of Avro classes need to be treated as RAW types. But

Re: Incompatible RAW types in Table API

2021-08-09 Thread Dominik Wosiński
It should be `id` instead of `licence` in the error, I've copy-pasted it incorrectly :< I've also tried additional thing, i.e. creating the ScalarFunction that does mapping of one avro generated enum to additional avro generated enum: @FunctionHint( input = Array( new DataTypeHint(value =

Re: Incompatible RAW types in Table API

2021-08-09 Thread Till Rohrmann
Hi Dominik, I am pulling in Timo who might know more about this. Cheers, Till On Mon, Aug 9, 2021 at 3:21 PM Dominik Wosiński wrote: > Hey all, > > I think I've hit some weird issue in Flink TypeInformation generation. I > have the following code: > > val stream: DataStream[Event] = ... >

Incompatible RAW types in Table API

2021-08-09 Thread Dominik Wosiński
Hey all, I think I've hit some weird issue in Flink TypeInformation generation. I have the following code: val stream: DataStream[Event] = ... tableEnv.createTemporaryView("TableName",stream) val table = tableEnv .sqlQuery("SELECT id, timestamp, eventType from TableName")