You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Fabian Hueske (JIRA)" <ji...@apache.org> on 2017/11/08 21:49:01 UTC
[jira] [Closed] (FLINK-7922) leastRestrictive in FlinkTypeFactory
does not resolve composite type correctly
[ https://issues.apache.org/jira/browse/FLINK-7922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fabian Hueske closed FLINK-7922.
--------------------------------
Resolution: Fixed
Fix Version/s: 1.5.0
1.3.3
1.4.0
Fixed for 1.3.3 with eb2995762ea441e5fdc0097263b9eaa5dc674aa1
Fixed for 1.4.0 with 8c60f97a43defc57bb1bfaabdd6081b329db53b8
Fixed for 1.5.0 with 949ae79dad149a97f4703daa7e58d7fbd0957dac
> 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
> Assignee: Rong Rong
> Fix For: 1.4.0, 1.3.3, 1.5.0
>
>
> FlinkTypeFactory does not override the following function correctly:
> {code:java}
> def leastRestrictive(types: util.List[RelDataType]): RelDataType = {
> //...
> }
> {code}
> dealing with SQL such as:
> {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)