srowen opened a new pull request #29925:
URL: https://github.com/apache/spark/pull/29925


   ### What changes were proposed in this pull request?
   
   RowMatrix contains a computation based on spark.driver.maxResultSize. 
However, when this value is set to 0, the computation fails (log of 0). The fix 
is simply to correctly handle this setting, which means unlimited result size, 
by using a tree depth of 1 in the RowMatrix method.
   
   ### Why are the changes needed?
   
   Simple bug fix to make several Spark ML functions which use RowMatrix run 
correctly in this case.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Not other than the bug fix of course.
   
   ### How was this patch tested?
   
   Existing RowMatrix tests plus a new test.
   


----------------------------------------------------------------
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]



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

Reply via email to