Skip to content

Instantly share code, notes, and snippets.

@mimiyan
mimiyan / ManagedMemoryLeak.scala
Created August 3, 2018 14:03
This piece of test code will lead to Spark WARN "Managed memory leak detected"
package test
import com.holdenkarau.spark.testing.{ DataFrameSuiteBase }
import org.apache.spark.sql.{ DataFrame }
import org.apache.spark.sql.SparkSession
import org.apache.spark.sql.functions.{ array, col, collect_set, udf }
import org.graphframes.GraphFrame
import org.graphframes.lib.AggregateMessages
import org.scalatest.FunSuite