[ 
https://issues.apache.org/jira/browse/SPARK-21801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16136370#comment-16136370
 ] 

Felix Cheung commented on SPARK-21801:
--------------------------------------

I've seen it a couple of times. Looking at the test now i think this is because 
the tests are not run with a random seed.

let me submit a PR to see if it addresses the failure

> SparkR unit test randomly fail on trees
> ---------------------------------------
>
>                 Key: SPARK-21801
>                 URL: https://issues.apache.org/jira/browse/SPARK-21801
>             Project: Spark
>          Issue Type: Bug
>          Components: SparkR, Tests
>    Affects Versions: 2.2.0
>            Reporter: Weichen Xu
>            Priority: Critical
>
> SparkR unit test sometimes will randomly occur such error:
> ```
> 1. Error: spark.randomForest (@test_mllib_tree.R#236) 
> --------------------------
> java.lang.IllegalArgumentException: requirement failed: The input column 
> stridx_87ea3065aeb2 should have at least two distinct values.
> ```
> or
> ```
> 1. Error: spark.decisionTree (@test_mllib_tree.R#353) 
> --------------------------
> java.lang.IllegalArgumentException: requirement failed: The input column 
> stridx_d6a0b492cfa1 should have at least two distinct values.
> ```



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to