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 2016/05/18 15:59:12 UTC

[jira] [Commented] (FLINK-3926) Incorrect implementation of getFieldIndex in TupleTypeInfo

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

Fabian Hueske commented on FLINK-3926:
--------------------------------------

I think the convention is that tuple field names start with "f" followed by the index, so {{fieldName.substring(1)}} should be OK (although we could also check that the name starts with "f").
How did you come across this issue? Do you have code that fail because of this method?

> Incorrect implementation of getFieldIndex in TupleTypeInfo 
> -----------------------------------------------------------
>
>                 Key: FLINK-3926
>                 URL: https://issues.apache.org/jira/browse/FLINK-3926
>             Project: Flink
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.2
>            Reporter: Yijie Shen
>            Assignee: Yijie Shen
>            Priority: Minor
>
> The origin code assumes filed name as *f2* which is not always true.
> Finding a field *x* would result in NumberFormatException



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)