Enabling GROUP BYs for Spark-0.8 port