title: Spark conversion error on the executor JDBC SQLSERVER partition option
body: <p>I'm first reading lower bound and upper bound using a:</p>
  <pre><code>select max(timestamp) ,min(timestamp) from table name
  </code></pre>
  <p>extracting
  <code>Row row=query.collectasList().get(0).getString(0) as lowerbound and upperbound</code>
  respectively
  then passing lowerbound and upper bound</p>
  <pre><code>
  spark.read(&quot;jdbc&quot;)
    .option(&quot;url&quot;, url)
    .option(&quot;dbtable&quot;, &quot;sample&quot;)
    .option(&quot;user&quot;, user)
    .option(&quot;driver&quot;,&quot;com.sqlserver&quot;)
    .option(&quot;password&quot;, password)
    .option(&quot;numPartitions&quot;, 100)
    .option(&quot;partitionColumn&quot;, &quot;timestamp&quot;)
    .option(&quot;lowerBound&quot;, lowerbound)
    .option(&quot;upperBound&quot;, upperbound )
  lowerbound and upperbound format &quot;2022-02-09 17:13:22.353&quot;
  </code></pre>
  <p>I understand lowerbound and upper bound has to be string but when passed I'm facing the below issue can you please help?
  Facing this issue Lost task 6.0 in stage 1.0 (TID 7, , executor 1):</p>
  <blockquote>
  <p>com.microsoft.sqlserver.jdbc.SQLServerException: Conversion failed when converting date and/or time from character string.
  at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java</p>
  </blockquote>