<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error org.apache.spark.SparkSQLException: Unsupported type TIMESTAMP_WITH_TIMEZONE in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/error-org-apache-spark-sparksqlexception-unsupported-type/m-p/10086#M5331</link>
    <description>&lt;P&gt;May try cast timestamp, like "SELECT CONO, STAT, ITNO, cast(timestamp as varchar) FROM MITMAS LIMIT 10"&lt;/P&gt;</description>
    <pubDate>Fri, 03 Feb 2023 14:14:15 GMT</pubDate>
    <dc:creator>RaghavendraY</dc:creator>
    <dc:date>2023-02-03T14:14:15Z</dc:date>
    <item>
      <title>Error org.apache.spark.SparkSQLException: Unsupported type TIMESTAMP_WITH_TIMEZONE</title>
      <link>https://community.databricks.com/t5/data-engineering/error-org-apache-spark-sparksqlexception-unsupported-type/m-p/10085#M5330</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I am trying to load data from a custom JDBC data source like below. I am getting this error, in spite of specifying "customSchema" attribute on the timestamp column. Do you know how to resolve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;material_master = spark.read \&lt;/P&gt;&lt;P&gt;.format("jdbc") \&lt;/P&gt;&lt;P&gt;.option("url","&amp;lt;my jdbc url&amp;gt;") \&lt;/P&gt;&lt;P&gt;.option("driver", "&amp;lt;my jdbc driver&amp;gt;") \&lt;/P&gt;&lt;P&gt;.option("customSchema", "timestamp STRING") \&lt;/P&gt;&lt;P&gt;.option("query","SELECT CONO, STAT, ITNO, timestamp FROM MITMAS LIMIT 10") \&lt;/P&gt;&lt;P&gt;.load()&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 12:17:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-org-apache-spark-sparksqlexception-unsupported-type/m-p/10085#M5330</guid>
      <dc:creator>KaushikMaji</dc:creator>
      <dc:date>2023-02-03T12:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error org.apache.spark.SparkSQLException: Unsupported type TIMESTAMP_WITH_TIMEZONE</title>
      <link>https://community.databricks.com/t5/data-engineering/error-org-apache-spark-sparksqlexception-unsupported-type/m-p/10086#M5331</link>
      <description>&lt;P&gt;May try cast timestamp, like "SELECT CONO, STAT, ITNO, cast(timestamp as varchar) FROM MITMAS LIMIT 10"&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 14:14:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-org-apache-spark-sparksqlexception-unsupported-type/m-p/10086#M5331</guid>
      <dc:creator>RaghavendraY</dc:creator>
      <dc:date>2023-02-03T14:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error org.apache.spark.SparkSQLException: Unsupported type TIMESTAMP_WITH_TIMEZONE</title>
      <link>https://community.databricks.com/t5/data-engineering/error-org-apache-spark-sparksqlexception-unsupported-type/m-p/10087#M5332</link>
      <description>&lt;P&gt;Hi @Kaushik Maji​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'd love to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 08:59:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-org-apache-spark-sparksqlexception-unsupported-type/m-p/10087#M5332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-10T08:59:30Z</dc:date>
    </item>
  </channel>
</rss>

