title: Which jar has org.apache.spark.sql.types?
body: <p>I am on Spark 1.x, and attempting to read csv files. If I need to specify some data types, as per the <a href="https://spark.apache.org/docs/1.6.2/sql-programming-guide.html#programmatically-specifying-the-schema" rel="nofollow noreferrer">documentation</a>, I need to import the types defined in the package <strong>org.apache.spark.sql.types</strong>.</p>
  
  <pre><code>import org.apache.spark.sql.types.{StructType,StructField,StringType};
  </code></pre>
  
  <p>This works fine when I use this interactively in spark-shell, but as I want to run this thru spark-submit, I wrote some Scala code to do this. But, when I attempt to compile my Scala code, it gives me an error saying it could NOT find org.apache.spark.sql.types. I looked up the jar contents of <code>spark-sql</code>, but couldn't find these types defined in there.</p>
  
  <p>So, which jar has org.apache.spark.sql.types?</p>