sepuri sai krishna created FLINK-40444:
------------------------------------------
Summary: 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.3.0, 2.2.0
Reporter: sepuri sai krishna
{{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)