title: How to compare 2 java.sql.Date in scala?
body: <p>I have some date in format java.sql.Date and I want to compare them</p>
  <pre><code>import java.sql.Date
  import org.apache.spark.sql.types.{DateType, IntegerType}
  var a = Date.valueOf(&quot;2018-11-09&quot;)
  var b = Date.valueOf(&quot;2019-11-09&quot;)
  
  a: java.sql.Date = 2018-11-09
  b: java.sql.Date = 2019-11-09
  </code></pre>
  <p>If I compare with an equal sign it work</p>
  <pre><code>a == b
  res1: Boolean = false
  </code></pre>
  <p>But if I want to know which one is bigger than the other it return an error:</p>
  <pre><code> a &gt;= b
  &lt;console&gt;:37: error: value &gt; is not a member of java.sql.Date
  </code></pre>
  <p>I would expect it to return false.</p>
  <p>How can I compare a and b.?</p>