[Spark SQL] remove a temporary function after test