title: spark createTableColumnTypes for TEXT data type in postgres table
body: <p>In spark data set I'm using <code>createTableColumnTypes</code> for the database column data types to use instead of the defaults, when creating the table. It's working perfect for <code>VARCHAR(n)</code> but if I'm using <code>TEXT</code> it's throwing error. Code is written in Java</p>
  
  <pre><code>Dataset &lt; Row &gt; df = sqlContext.read()
                      .format("com.databricks.spark.csv")
                      .schema(sparkDataSchema)
                      .option("delimiter", dataDelimeter)
                      .option("header", true).option("quote", "\"")
                      .option("escape", "\"").load(paths.split(","));
  
  
  df.write().option("truncate", true).mode(SaveMode.Overwrite).option("createTableColumnTypes", customSchema).jdbc(url, tableName, connectionProperties);
  </code></pre>
  
  <p>Error is given below</p>
  
  <blockquote>
    <p>Exception in thread "main"
    org.apache.spark.sql.catalyst.parser.ParseException:  DataType text is
    not supported.(line 1, pos 29)</p>
  </blockquote>