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

Ingo Bürk commented on FLINK-24290:
-----------------------------------

`fromValues(AbstractDataType, Iterable)` calls `objectToExpression` without 
passing along the actual type. `objectToExpression` will fall back to 
`ApiExpressionUtils#valueLiteral` which will fail in the constructor when 
calling `

deriveDataTypeFromValue`. Since the type is simply not passed along, the type 
hint in the UDF just does nothing.

> Support STRUCTURED_TYPE for JSON_OBJECT / JSON_ARRAY
> ----------------------------------------------------
>
>                 Key: FLINK-24290
>                 URL: https://issues.apache.org/jira/browse/FLINK-24290
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table SQL / API
>            Reporter: Ingo Bürk
>            Assignee: Ingo Bürk
>            Priority: Minor
>
> In FLINK-16203 we excluded this because we run into a limitation with 
> fromValues when testing it. I will apply the patch that should implement 
> this, but we need to find a way to make the test work.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to