title: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/spark/sql/Column
body: <p>I am new to Scala and Intellij and have been struggling with the following error:</p>
  
  <pre><code>java.lang.NoClassDefFoundError: org/apache/spark/sql/Column
  </code></pre>
  
  <p>I built my scala/sbt project with the dependency:</p>
  
  <pre><code>libraryDependencies += "org.apache.spark" % "spark-sql_2.11" % "2.2.0" % "provided"
  </code></pre>
  
  <p>And I was able to add the following import: </p>
  
  <pre><code>import org.apache.spark.sql.{Row, SparkSession, Column}
  </code></pre>
  
  <p>However, the <code>Row</code> and <code>SparkSession</code> look normal, but <code>Column</code> appears to be gray-out.</p>
  
  <p>I can't seem to figure out why <code>Column</code> is working differently. </p>
  
  <p>Any help will be greatly appreciated! Thanks!</p>