You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Kyle Weaver (Jira)" <ji...@apache.org> on 2020/07/08 20:01:00 UTC

[jira] [Resolved] (BEAM-10243) Incorrect checkState condition in withFieldValues in Row.java

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

Kyle Weaver resolved BEAM-10243.
--------------------------------
    Fix Version/s: 2.24.0
       Resolution: Fixed

> Incorrect checkState condition in withFieldValues in Row.java
> -------------------------------------------------------------
>
>                 Key: BEAM-10243
>                 URL: https://issues.apache.org/jira/browse/BEAM-10243
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-core
>    Affects Versions: 2.22.0
>            Reporter: Pedro Teixeira
>            Assignee: Kyle Weaver
>            Priority: P2
>             Fix For: 2.24.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
>  
> In the following code:
> {code:java}
> public FieldValueBuilder withFieldValues(Map<String, Object> values) { 
>    checkState(values.isEmpty()); 
>    return new FieldValueBuilder(schema, null).withFieldValues(values); 
> }  
> {code}
>  
> checkState should check `this.values` instead of the passed arguments.
> The issue is that as it is now, we cannot use this function to build a Row from Map.
>  
> thanks.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)