title: jdbc.SQLServerException: The "variant" data type is not supported
body: <p>I use pyspark 2.4.4 when I am getting the data from SQL Server I get <code>com.microsoft.sqlserver.jdbc.SQLServerException: The "variant" data type is not supported.</code></p>
  
  <p>What is needed to do? to fix this problem. I read <a href="https://stackoverflow.com/questions/40786605/spark-variant-datatype-is-not-supported#comment-formatting">this</a>. But, I do not understand.</p>
  
  <p>EDIT: 
  The following is the code I use to create the error message: </p>
  
  <pre><code>for i in df['name']: mssql_df = spark.read.format("jdbc") \ 
  .option("url", "jdbc:sqlserver://SERVERNAME:1433;databaseName=DB;integratedSecurity=true") \ 
  .option("dbtable", "[" + i + "]") \ 
  .option("driver", 'com.microsoft.sqlserver.jdbc.SQLServerDriver').load()
  </code></pre>