You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by Dominik Wosiński <wo...@gmail.com> on 2021/08/18 14:08:15 UTC

Common type required when creating TableSchema

Hey,
I've stumbled across a weird behavior and was wondering whether this is
intentional for some reason or the result of a weird bug. So, basically
currently if we want to create *org.apache.flink.table.api.Schema *taht has
one of the types defined as *RAW (*AVRO enum in my case) it's probably not
possible ATM. I've created arrays with names and types, but it's impossible
to create the *Schema* due to the following error:

*Could not find a common type for arguments: [BIGINT, BIGINT,
RAW('org.test.TestEnum', '...'), INT, STRING, BIGINT]*

Is that intentional ? If so, is there a way to create a *Schema* that has
*RAW* types ?


Thanks,
Cheers,
Dom.

Re: Common type required when creating TableSchema

Posted by Ingo Bürk <in...@ververica.com>.
Hi Dominik,

can you maybe share how you are trying to create the Schema and what you
are doing with it afterwards?


Best
Ingo

On Wed, Aug 18, 2021 at 4:08 PM Dominik Wosiński <wo...@gmail.com> wrote:

> Hey,
> I've stumbled across a weird behavior and was wondering whether this is
> intentional for some reason or the result of a weird bug. So, basically
> currently if we want to create *org.apache.flink.table.api.Schema *taht has
> one of the types defined as *RAW (*AVRO enum in my case) it's probably not
> possible ATM. I've created arrays with names and types, but it's impossible
> to create the *Schema* due to the following error:
>
> *Could not find a common type for arguments: [BIGINT, BIGINT,
> RAW('org.test.TestEnum', '...'), INT, STRING, BIGINT]*
>
> Is that intentional ? If so, is there a way to create a *Schema* that has
> *RAW* types ?
>
>
> Thanks,
> Cheers,
> Dom.
>