title: Spark sql queries vs dataframe functions
body: <p>To perform good performance with Spark. I'm a wondering if it is good to use sql queries via <code>SQLContext</code> or if this is better to do queries via DataFrame functions like <code>df.select()</code>.</p>
  
  <p>Any idea? :) </p>