Scala case class ignoring import in the Spark shell
<p>I hope there is an obvious answer to this question!</p>

<p>I've just upgraded to Spark v2.0 and have an odd problem with the <strong>spark-shell</strong> (Scala 2.11 build).</p>

<p>If I enter the following minimal Scala,</p>

<pre>import java.sql.Timestamp

case class Crime(caseNumber: String, date: Timestamp, description: String, detail: String, arrest: Boolean)</pre>

<p>I get the following error,</p>

<pre>&lt;console&gt;:11: error: not found: type Timestamp</pre>

<p>If I use the Java <strong>Timestamp</strong> class elsewhere, e.g. in a function, then no errors are generated (as you would expect because of the import).</p>

<p>If I fully qualify and use <strong>java.sql.Timestamp</strong> in the case class it works!</p>

<p>Am I missing something obvious?</p>