<?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: SedonaSqlExtensions is not autoregistering types and functions in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/sedonasqlextensions-is-not-autoregistering-types-and-functions/m-p/92659#M38496</link>
    <description>&lt;P&gt;Hi , After adding the suggested config, i am getting the following error&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Caused by: java.lang.ClassNotFoundException: org.apache.sedona.core.serde.SedonaSQLRegistrator not found in com.databricks.backend.daemon.driver.ClassLoaders$LibraryClassLoader@7d1cdebf&lt;BR /&gt;&lt;BR /&gt;What should i do to fix this?&lt;/P&gt;</description>
    <pubDate>Thu, 03 Oct 2024 14:39:27 GMT</pubDate>
    <dc:creator>Kunal_Mishra</dc:creator>
    <dc:date>2024-10-03T14:39:27Z</dc:date>
    <item>
      <title>SedonaSqlExtensions is not autoregistering types and functions</title>
      <link>https://community.databricks.com/t5/data-engineering/sedonasqlextensions-is-not-autoregistering-types-and-functions/m-p/9960#M5218</link>
      <description>&lt;P&gt;The usual way to use Apache Sedona inside pySpark is by first registering Sedona types and functions with&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SedonaRegistrator.registerAll(spark)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;We need to have these autoregistered when the cluster start (to be able, for example, to perform geospatial queries with the Databricks SQL Connector for Python).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/sedona/pull/513" alt="https://github.com/apache/sedona/pull/513" target="_blank"&gt;From my understanding&lt;/A&gt;, autoregistration can be obtained by adding the following cluster configuration, but it doesn't work:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;spark.sql.extensions org.apache.sedona.sql.SedonaSqlExtensions&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I miss something? &lt;/P&gt;&lt;P&gt;Is my expectation wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 11:31:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sedonasqlextensions-is-not-autoregistering-types-and-functions/m-p/9960#M5218</guid>
      <dc:creator>giohappy</dc:creator>
      <dc:date>2023-02-06T11:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: SedonaSqlExtensions is not autoregistering types and functions</title>
      <link>https://community.databricks.com/t5/data-engineering/sedonasqlextensions-is-not-autoregistering-types-and-functions/m-p/9961#M5219</link>
      <description>&lt;P&gt;@Giovanni Allegri​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The configuration you have provided is for registering the Sedona SQL extensions with Spark SQL. However, to register Sedona types and functions with PySpark, you need to use a different configuration.&lt;/P&gt;&lt;P&gt;You can add the following configuration to the Spark cluster configuration to enable automatic registration of Sedona types and functions with PySpark:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;spark.extraListeners org.apache.sedona.core.serde.SedonaSQLRegistrator&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This will enable automatic registration of Sedona types and functions when a PySpark session is created. Alternatively, you can also register Sedona types and functions explicitly in your PySpark code using the SedonaRegistrator.registerAll(spark) method. However, this would require you to call this method every time you create a new PySpark session.&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;</description>
      <pubDate>Sun, 09 Apr 2023 14:35:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sedonasqlextensions-is-not-autoregistering-types-and-functions/m-p/9961#M5219</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-09T14:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: SedonaSqlExtensions is not autoregistering types and functions</title>
      <link>https://community.databricks.com/t5/data-engineering/sedonasqlextensions-is-not-autoregistering-types-and-functions/m-p/9962#M5220</link>
      <description>&lt;P&gt;Hi @Giovanni Allegri​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting your question in our community! We are happy to assist you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 09:41:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sedonasqlextensions-is-not-autoregistering-types-and-functions/m-p/9962#M5220</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-12T09:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: SedonaSqlExtensions is not autoregistering types and functions</title>
      <link>https://community.databricks.com/t5/data-engineering/sedonasqlextensions-is-not-autoregistering-types-and-functions/m-p/92659#M38496</link>
      <description>&lt;P&gt;Hi , After adding the suggested config, i am getting the following error&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Caused by: java.lang.ClassNotFoundException: org.apache.sedona.core.serde.SedonaSQLRegistrator not found in com.databricks.backend.daemon.driver.ClassLoaders$LibraryClassLoader@7d1cdebf&lt;BR /&gt;&lt;BR /&gt;What should i do to fix this?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 14:39:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sedonasqlextensions-is-not-autoregistering-types-and-functions/m-p/92659#M38496</guid>
      <dc:creator>Kunal_Mishra</dc:creator>
      <dc:date>2024-10-03T14:39:27Z</dc:date>
    </item>
  </channel>
</rss>

