finish Spark SQL