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

    https://github.com/apache/spark/pull/19648#discussion_r148861446
  
    --- Diff: 
mllib/src/test/scala/org/apache/spark/ml/evaluation/ClusteringEvaluatorSuite.scala
 ---
    @@ -22,15 +22,21 @@ import org.apache.spark.ml.param.ParamsSuite
     import org.apache.spark.ml.util.DefaultReadWriteTest
     import org.apache.spark.ml.util.TestingUtils._
     import org.apache.spark.mllib.util.MLlibTestSparkContext
    -import org.apache.spark.sql.{DataFrame, SparkSession}
    -import org.apache.spark.sql.types.IntegerType
    +import org.apache.spark.sql.Dataset
     
     
     class ClusteringEvaluatorSuite
       extends SparkFunSuite with MLlibTestSparkContext with 
DefaultReadWriteTest {
     
       import testImplicits._
     
    +  @transient var irisDataset: Dataset[_] = _
    --- End diff --
    
    Either is ok, no difference on performance, we just keep consistent with 
other test suites. 


---

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

Reply via email to