[ 
https://issues.apache.org/jira/browse/FLINK-40444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18106014#comment-18106014
 ] 

sepuri sai krishna commented on FLINK-40444:
--------------------------------------------

PR: https://github.com/apache/flink/pull/28994

> OBJECT_UPDATE returns incorrect results for some structured types
> -----------------------------------------------------------------
>
>                 Key: FLINK-40444
>                 URL: https://issues.apache.org/jira/browse/FLINK-40444
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / API
>    Affects Versions: 2.2.0, 2.3.0
>            Reporter: sepuri sai krishna
>            Priority: Critical
>              Labels: pull-request-available
>
> {{OBJECT_UPDATE}} can return a result that does not match the schema of
> the structured type it is given.
> Depending on the types involved this surfaces in one of two ways:
> * the query fails at runtime with a {{ClassCastException}}, or
> * the query succeeds and silently returns incorrect values.
> Whether it happens depends on the attribute names of the structured
> type, which is why it is not caught by the existing tests.
> Reproducible with a single statement in the SQL Client - no connector,
> no table and no state involved.
> Verified on {{master}} (2.4-SNAPSHOT).
> I have a fix with unit and integration tests ready, and will open a PR
> shortly. Happy to attach a reproducer if that is useful.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to