Approximate Query Processing based on Spark