HyukjinKwon commented on code in PR #50665: URL: https://github.com/apache/spark/pull/50665#discussion_r2059354134
########## mllib/src/main/scala/org/apache/spark/ml/clustering/KMeans.scala: ########## @@ -233,7 +233,7 @@ private class InternalKMeansModelWriter extends MLWriterFormat with MLFormatRegi ClusterData(idx, center) } val dataPath = new Path(path, "data").toString - sparkSession.createDataFrame(data.toImmutableArraySeq).repartition(1).write.parquet(dataPath) + ReadWriteUtils.saveArray(dataPath, data, sparkSession) Review Comment: If that's the case, yeah there's no way to write it by using SparkSession. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org