[
https://issues.apache.org/jira/browse/BEAM-10243?focusedWorklogId=456319&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-456319
]
ASF GitHub Bot logged work on BEAM-10243:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 08/Jul/20 20:00
Start Date: 08/Jul/20 20:00
Worklog Time Spent: 10m
Work Description: ibzib merged pull request #12200:
URL: https://github.com/apache/beam/pull/12200
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 456319)
Time Spent: 0.5h (was: 20m)
> 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
> 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)