shahidki31 commented on a change in pull request #21509: [SPARK-24489][ML]Check
for invalid input type of weight data in ml.PowerIterationClustering
URL: https://github.com/apache/spark/pull/21509#discussion_r245077216
##########
File path:
mllib/src/main/scala/org/apache/spark/ml/clustering/PowerIterationClustering.scala
##########
@@ -166,6 +166,8 @@ class PowerIterationClustering private[clustering] (
val w = if (!isDefined(weightCol) || $(weightCol).isEmpty) {
lit(1.0)
} else {
+ SchemaUtils.checkColumnTypes(dataset.schema, $(weightCol),
Seq(FloatType, DoubleType,
Review comment:
Thanks @holdenk . I have updated accordingly. kindly review
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]