Spark SQL Query Optimization Based on Runtime Statistics Collection