Spark SQL as a distributed SQL engine