Hi Daniele Parmeggiani,

I have some ideas regarding the issue. From the exception:

java.lang.ClassCastException: class org.apache.flink.types.Row cannot be
cast to class org.apache.flink.table.data.RowData
This error clearly indicates that the code is trying to cast a Row object
to a RowData object, which suggests that the input data being processed is
of type Row. However, the backported ARRAY_AGG function expects RowData.
The type mismatch between Row and RowData might be causing the error.

We need to confirm whether the data type passed to ARRAY_AGG is the correct
one. Additionally, the input and output strategy should be defined in
BuiltInFunctionDefinitions — we should first define the input and output
types and then let the function use them.

It’s possible that checking the type in the wrong place and passing an
incorrect data type is leading to this issue.

On Wed, Oct 23, 2024 at 5:32 PM Hanyu (Peter) Zheng <pzh...@confluent.io>
wrote:

>
> I have some ideas.
> --
>
> [image: Confluent] <https://www.confluent.io>
> Hanyu (Peter) Zheng he/him/his
> Software Engineer
> +1 (213) 431-7193 <+1+(213)+431-7193>
> Follow us: [image: Blog]
> <https://www.confluent.io/blog?utm_source=footer&utm_medium=email&utm_campaign=ch.email-signature_type.community_content.blog>[image:
> Twitter] <https://twitter.com/ConfluentInc>[image: LinkedIn]
> <https://www.linkedin.com/in/hanyu-peter-zheng/>[image: Slack]
> <https://slackpass.io/confluentcommunity>[image: YouTube]
> <https://youtube.com/confluent>
>
> [image: Try Confluent Cloud for Free]
> <https://www.confluent.io/get-started?utm_campaign=tm.fm-apac_cd.inbound&utm_source=gmail&utm_medium=organic>
>


-- 

[image: Confluent] <https://www.confluent.io>
Hanyu (Peter) Zheng he/him/his
Software Engineer
+1 (213) 431-7193 <+1+(213)+431-7193>
Follow us: [image: Blog]
<https://www.confluent.io/blog?utm_source=footer&utm_medium=email&utm_campaign=ch.email-signature_type.community_content.blog>[image:
Twitter] <https://twitter.com/ConfluentInc>[image: LinkedIn]
<https://www.linkedin.com/in/hanyu-peter-zheng/>[image: Slack]
<https://slackpass.io/confluentcommunity>[image: YouTube]
<https://youtube.com/confluent>

[image: Try Confluent Cloud for Free]
<https://www.confluent.io/get-started?utm_campaign=tm.fm-apac_cd.inbound&utm_source=gmail&utm_medium=organic>

Reply via email to