title: How to read a parquet file with lots of columns to a Dataset without a custom case class?
body: <p>I want to use datasets instead of dataframes.</p>
  
  <p>I'm reading a parquet file and want to infer the types directly:</p>
  
  <pre><code>val df: Dataset[Row] = spark.read.parquet(path)
  </code></pre>
  
  <p>I don't want <code>Dataset[Row]</code> but a <code>Dataset</code>.</p>
  
  <p>I know I can do something like:</p>
  
  <pre><code>val df= spark.read.parquet(path).as[myCaseClass]
  </code></pre>
  
  <p>but, my data has many columns! so, if I can avoid writing a case class it would be great!</p>