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

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

                Author: ASF GitHub Bot
            Created on: 14/Mar/19 18:50
            Start Date: 14/Mar/19 18:50
    Worklog Time Spent: 10m 
      Work Description: jhalaria commented on pull request #8042: [BEAM-6812]: 
Create a custom hash partitioner that deals with arrays during spark combines
URL: https://github.com/apache/beam/pull/8042#discussion_r265718317
 
 

 ##########
 File path: 
runners/spark/src/main/java/org/apache/beam/runners/spark/translation/TransformTranslator.java
 ##########
 @@ -569,8 +568,8 @@ private static Partitioner 
getPartitioner(EvaluationContext context) {
     Long bundleSize =
         
context.getSerializableOptions().get().as(SparkPipelineOptions.class).getBundleSize();
     return (bundleSize > 0)
-        ? null
-        : new HashPartitioner(context.getSparkContext().defaultParallelism());
+        ? 
CustomSparkHashPartitioner.of(context.getSparkContext().defaultParallelism())
 
 Review comment:
   This logic seems to be accidentally flipped?
 
----------------------------------------------------------------
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: 213344)
    Time Spent: 40m  (was: 0.5h)

> HashPartitioning on Spark with arrays as keys produces unpredictable results
> ----------------------------------------------------------------------------
>
>                 Key: BEAM-6812
>                 URL: https://issues.apache.org/jira/browse/BEAM-6812
>             Project: Beam
>          Issue Type: Bug
>          Components: runner-spark
>            Reporter: Ankit Jhalaria
>            Assignee: Ankit Jhalaria
>            Priority: Critical
>          Time Spent: 40m
>  Remaining Estimate: 0h
>




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

Reply via email to