Github user chouqin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2595#discussion_r18317071
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/mllib/tree/impl/DTStatsAggregator.scala 
---
    @@ -159,161 +166,15 @@ private[tree] abstract class DTStatsAggregator(
        * This method modifies this aggregator in-place.
        */
       def merge(other: DTStatsAggregator): DTStatsAggregator = {
    -    require(allStatsSize == other.allStatsSize,
    +    require(statsSize == other.statsSize,
           s"DTStatsAggregator.merge requires that both aggregators have the 
same length stats vectors."
    -      + s" This aggregator is of length $allStatsSize, but the other is 
${other.allStatsSize}.")
    +        + s" This aggregator is of length $statsSize, but the other is 
${other.statsSize}.")
         var i = 0
         // TODO: Test BLAS.axpy
    -    while (i < allStatsSize) {
    +    while (i < statsSize) {
    --- End diff --
    
    Thank you very much, this is the bug that cause pyspark unit test to fail. 
I am really sorry for getting you into trouble.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to