first draft of sparksql compute engine