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

    https://github.com/apache/spark/pull/21274#discussion_r186986006
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/ml/clustering/PowerIterationClustering.scala
 ---
    @@ -232,7 +232,7 @@ class PowerIterationClustering private[clustering] (
             case _: LongType =>
               uncastPredictions
             case otherType =>
    --- End diff --
    
    Why not directly use
    `case intType: IntType: ` so that make a stronger restriction ?
    Or do we need to support other types besides int/long ?


---

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

Reply via email to