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

Sergey Nuyanzin commented on FLINK-36916:
-----------------------------------------

FYI the root cause of this task seems to be lack of support for column list
If you try to debug it you will see that in this case there will be an attempt 
to use COLUMN_LIST
however it is unsupported by FlinkTypeFactory
https://github.com/apache/flink/blob/c7d8515c0285fc0019571a1f637377630c5a06fa/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/calcite/FlinkTypeFactory.scala#L396-L400
 

This kind of support is going to be added as a part of FLIP-440
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=298781093#FLIP440:UserdefinedSQLoperators/ProcessTableFunction(PTF)-DescriptorType,LogicalTypeRoot,DataTypes,ColumnList

so probably makes to postpone till FLIP-440 implementation

> Unexpected error in type inference logic of function 'TYPEOF' for ROW
> ---------------------------------------------------------------------
>
>                 Key: FLINK-36916
>                 URL: https://issues.apache.org/jira/browse/FLINK-36916
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Yiyu Tian
>            Assignee: Yiyu Tian
>            Priority: Major
>
> {{SELECT TYPEOF(CAST((1,2) AS ROW<field1 INT, field2 INT>));}}
> results in {{Unexpected error in type inference logic of function 'TYPEOF'. 
> This is a bug.}}



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

Reply via email to