title: Spark sqlContext select all
body: <p>I read data using Spark SQLContext and store it on a variable:</p>
  
  <pre><code> val somevar = sqlContext.read.parquet(some_file.parquet)
  </code></pre>
  
  <p>Then I wish to select all the values using select, something like:</p>
  
  <pre><code>  somevar.select(*)
  </code></pre>
  
  <p>But this does not work.</p>
  
  <p>The equivalent would be to do:</p>
  
  <pre><code>somevar.registerTempTable("sometable")
  
  sqlContext.sql("SELECT * FROM sometable")
  </code></pre>
  
  <p>But I do not wish to do the previous.</p>
  
  <p>Kind regards. </p>