Open Litchilitchy opened 5 years ago
the transformer is from original rdd right ? I think the original will be unpersisted once transformer got unpersisted
the transformer returns a new anonymous DistributedDataset
which override the unpersist()
and actually this code does not unpersist the origin_RDD
Do we still need to fix this? @Litchilitchy
https://github.com/intel-analytics/BigDL/blob/4a1126e1479528552e9c2c77a13d4b4414f36652/spark/dl/src/main/scala/com/intel/analytics/bigdl/dataset/DataSet.scala#L195
only transformer is unpersisted, if transform action is called and unpersist method will call this method, leaving RDD still in cache
should do
originRDD().unpersist()