You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "sunjincheng (JIRA)" <ji...@apache.org> on 2018/12/27 02:37:00 UTC
[jira] [Closed] (FLINK-11142) Undefined behavior in the conversion
from DataStream/DataSet to Table
[ https://issues.apache.org/jira/browse/FLINK-11142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
sunjincheng closed FLINK-11142.
-------------------------------
Resolution: Fixed
> Undefined behavior in the conversion from DataStream/DataSet to Table
> ---------------------------------------------------------------------
>
> Key: FLINK-11142
> URL: https://issues.apache.org/jira/browse/FLINK-11142
> Project: Flink
> Issue Type: Improvement
> Components: Table API & SQL
> Affects Versions: 1.5.5, 1.6.2, 1.7.0
> Reporter: Yangze Guo
> Assignee: Hequn Cheng
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> When we try to convert DataStream/DataSet to Table. There are two ways of adding schema information, *ByName* or *ByPosition*.
> This feature first proposed in [this pr|https://github.com/apache/flink/pull/5132].
> In *ByPosition* mode, the current code does not check if the number of fields less than its in DataStream/DataSet. This may cause undefined behavior, e.g. make a projection in *ByPosition* mode.
> We can either fix it by adding some checking or regard this as a feature and just improve the doc to clarify it. In my opinion, the latter way seems better.
> [~twalthr] Could you take a look at it when you free?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)