use shark.execution.serialization.JavaSerializer to ser/de TableStats, instead of using spark.SparkEnv.closureSerializer.