Implement project & filter in Spark.