[ 
https://issues.apache.org/jira/browse/FLINK-7922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rong Rong updated FLINK-7922:
-----------------------------
    Description: 
FlinkTypeFactory does not override the following function correctly:
{code:scala}
def leastRestrictive(types: util.List[RelDataType]): RelDataType = {
  //... 
}
{code}

to deal with situations like
{code:sql}
CASE 
  WHEN <CONDITION> THEN 
    <COMPOSITE_TYPE> 
  ELSE 
    NULL 
END
{code}
will trigger runtime exception. 

See following test sample for more details:
https://github.com/walterddr/flink/commit/a5f2affc9bbbd50f06200f099c90597e519e9170

  was:
FlinkTypeFactory does not override the following function correctly:
`leastRestrictive(types: util.List[RelDataType]): RelDataType = { //... }` 
to deal with situations like
```
CASE 
  WHEN <CONDITION> THEN 
    <COMPOSITE_TYPE> 
  ELSE 
    NULL 
END
```
will trigger runtime exception


> leastRestrictive in FlinkTypeFactory does not resolve composite type correctly
> ------------------------------------------------------------------------------
>
>                 Key: FLINK-7922
>                 URL: https://issues.apache.org/jira/browse/FLINK-7922
>             Project: Flink
>          Issue Type: Bug
>          Components: Table API & SQL
>    Affects Versions: 1.4.0
>            Reporter: Rong Rong
>
> FlinkTypeFactory does not override the following function correctly:
> {code:scala}
> def leastRestrictive(types: util.List[RelDataType]): RelDataType = {
>   //... 
> }
> {code}
> to deal with situations like
> {code:sql}
> CASE 
>   WHEN <CONDITION> THEN 
>     <COMPOSITE_TYPE> 
>   ELSE 
>     NULL 
> END
> {code}
> will trigger runtime exception. 
> See following test sample for more details:
> https://github.com/walterddr/flink/commit/a5f2affc9bbbd50f06200f099c90597e519e9170



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to