[ 
https://issues.apache.org/jira/browse/BEAM-7699?focusedWorklogId=274155&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-274155
 ]

ASF GitHub Bot logged work on BEAM-7699:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 09/Jul/19 15:59
            Start Date: 09/Jul/19 15:59
    Worklog Time Spent: 10m 
      Work Description: lukecwik commented on pull request #9009: [BEAM-7699] 
Propagate null check/comparison to deepEquals
URL: https://github.com/apache/beam/pull/9009#discussion_r301667319
 
 

 ##########
 File path: sdks/java/core/src/main/java/org/apache/beam/sdk/values/Row.java
 ##########
 @@ -422,14 +422,8 @@ static int deepHashCode(Object a, Schema.FieldType 
fieldType) {
         V value = e.getValue();
         V otherValue = b.get(key);
 
-        if (value == null) {
-          if (otherValue != null || !b.containsKey(key)) {
-            return false;
-          }
-        } else {
-          if (!deepEquals(value, otherValue, valueType)) {
-            return false;
-          }
+        if (!deepEquals(value, otherValue, valueType)) {
 
 Review comment:
   Would you like to add a test for this case so that future similar changes 
which would break this would be caught?
 
----------------------------------------------------------------
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: 274155)
    Time Spent: 40m  (was: 0.5h)

> Remove duplicated null checks in Row.equals
> -------------------------------------------
>
>                 Key: BEAM-7699
>                 URL: https://issues.apache.org/jira/browse/BEAM-7699
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-core
>            Reporter: Naheon Kim
>            Priority: Trivial
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> After [BEAM-5866|https://issues.apache.org/jira/browse/BEAM-5866] and 
> [BEAM-7125|https://issues.apache.org/jira/browse/BEAM-7125] Row has 
> duplicated null value checks.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to