Github user WeichenXu123 commented on the issue:

    https://github.com/apache/spark/pull/19111
  
    I found `NaiveBayes` also possible to fail. Founded here #18538 . Hope this 
can works!
    
    
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/81316/console
    
    ```
    2. Error: spark.naiveBayes (@test_mllib_classification.R#482) 
------------------
    java.lang.IllegalArgumentException: requirement failed: The input column 
stridx_5a965aeed344 should have at least two distinct values.
        at scala.Predef$.require(Predef.scala:224)
        at 
org.apache.spark.ml.feature.OneHotEncoder$$anonfun$5.apply(OneHotEncoder.scala:113)
    ...
    1: spark.naiveBayes(traindf, clicked ~ ., smoothing = 0) at 
/home/jenkins/workspace/SparkPullRequestBuilder/R/pkg/tests/fulltests/test_mllib_classification.R:482
    2: spark.naiveBayes(traindf, clicked ~ ., smoothing = 0)
    3: .local(data, formula, ...)
    4: callJStatic("org.apache.spark.ml.r.NaiveBayesWrapper", "fit", formula, 
data@sdf, 
           smoothing, handleInvalid)
    5: invokeJava(isStatic = TRUE, className, methodName, ...)
    6: handleErrors(returnStatus, conn)
    7: stop(readString(conn))
    
    DONE 
===========================================================================
    Error: Test failures
    Execution halted
    ```


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to