cloud-fan commented on code in PR #53232:
URL: https://github.com/apache/spark/pull/53232#discussion_r2566955763
##########
mllib/src/main/scala/org/apache/spark/ml/fpm/FPGrowth.scala:
##########
@@ -343,16 +343,11 @@ object FPGrowthModel extends MLReadable[FPGrowthModel] {
class FPGrowthModelWriter(instance: FPGrowthModel) extends MLWriter {
override protected def saveImpl(path: String): Unit = {
- if (ReadWriteUtils.localSavingModeState.get()) {
- throw new UnsupportedOperationException(
- "FPGrowthModel does not support saving to local filesystem path."
- )
- }
val extraMetadata: JObject = Map("numTrainingRecords" ->
instance.numTrainingRecords)
DefaultParamsWriter.saveMetadata(instance, path, sparkSession,
extraMetadata = Some(extraMetadata))
val dataPath = new Path(path, "data").toString
Review Comment:
can we pass `Path` object to `saveDataFrame` directly?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]