You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by al...@apache.org on 2020/02/26 21:29:15 UTC

[incubator-datasketches-java] 01/01: done after copying the input

This is an automated email from the ASF dual-hosted git repository.

alsay pushed a commit to branch cpc_union_fix
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-java.git

commit 17d92beae694b6e30db66327ed36fa6475ff96c9
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Wed Feb 26 13:26:55 2020 -0800

    done after copying the input
---
 src/main/java/org/apache/datasketches/cpc/CpcUnion.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/java/org/apache/datasketches/cpc/CpcUnion.java b/src/main/java/org/apache/datasketches/cpc/CpcUnion.java
index 419507b..98cf49e 100644
--- a/src/main/java/org/apache/datasketches/cpc/CpcUnion.java
+++ b/src/main/java/org/apache/datasketches/cpc/CpcUnion.java
@@ -301,6 +301,7 @@ public class CpcUnion {
         if ((union.accumulator.getFlavor() == EMPTY) //lgtm [java/dereferenced-value-may-be-null]
             && (union.lgK == source.lgK)) {
           union.accumulator = source.copy();
+          break;
         }
         walkTableUpdatingSketch(union.accumulator, source.pairTable);
         // if the accumulator has graduated beyond sparse, switch union to a bitMatrix


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org