<?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: GEOMETRY column type breaks all access to table from Spark in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/geometry-column-type-breaks-all-access-to-table-from-spark/m-p/132716#M49613</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/23233"&gt;@NandiniN&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;To my understanding, there is no way to use the Databricks SDK as a catalog implementation in an external Spark workload, correct?&lt;/P&gt;&lt;P&gt;The table I'm using is a Delta table I created from a Databricks notebook. The rows represent some areas-of-interest for spatial analysis, with my geometry-typed column encoding the polygon of the area.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Sep 2025 16:51:05 GMT</pubDate>
    <dc:creator>sfishel18</dc:creator>
    <dc:date>2025-09-22T16:51:05Z</dc:date>
    <item>
      <title>GEOMETRY column type breaks all access to table from Spark</title>
      <link>https://community.databricks.com/t5/data-engineering/geometry-column-type-breaks-all-access-to-table-from-spark/m-p/131816#M49248</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN&gt;I have a Databricks table with a column using the new&amp;nbsp;&lt;/SPAN&gt;GEOMETRY type&lt;SPAN&gt;. When I try to access this table from a Spark workload, I am not able to describe the table or operate on any of its columns. My Spark config is the following, per the Databricks docs:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;spark.sql.catalog.spark_catalog org.apache.spark.sql.delta.catalog.DeltaCatalog
spark.sql.catalog.my_catalog io.unitycatalog.spark.UCSingleCatalog
spark.sql.catalog.my_catalog.uri &amp;lt;Databricks workspace URL&amp;gt;/api/2.1/unity-catalog
spark.sql.catalog.my_catalog.token &amp;lt;Databricks PAT&amp;gt;&lt;/PRE&gt;&lt;P data-unlink="true"&gt;&lt;SPAN&gt;If I try to access the table from my Spark workload - even to examine its schema or operate on non-geometry columns - I get an error like this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;io.unitycatalog.client.ApiException: com.fasterxml.jackson.databind.exc.ValueInstantiationException: Cannot construct instance of `io.unitycatalog.client.model.ColumnTypeName`, problem: Unexpected value 'GEOMETRY'
 at [Source: (jdk.internal.net.http.ResponseSubscribers$HttpResponseInputStream); line: 1, column: 8354] (through reference chain: io.unitycatalog.client.model.TableInfo["columns"]-&amp;gt;java.util.ArrayList[13]-&amp;gt;io.unitycatalog.client.model.ColumnInfo["type_name"])
	at io.unitycatalog.client.api.TablesApi.getTableWithHttpInfo(TablesApi.java:273)
	at io.unitycatalog.client.api.TablesApi.getTable(TablesApi.java:241)
	at io.unitycatalog.spark.UCProxy.loadTable(UCSingleCatalog.scala:237)
	at org.apache.spark.sql.connector.catalog.DelegatingCatalogExtension.loadTable(DelegatingCatalogExtension.java:73)
	at org.apache.spark.sql.delta.catalog.DeltaCatalog.super$loadTable(DeltaCatalog.scala:229)
	at org.apache.spark.sql.delta.catalog.DeltaCatalog.$anonfun$loadTable$1(DeltaCatalog.scala:229)
	at org.apache.spark.sql.delta.metering.DeltaLogging.recordFrameProfile(DeltaLogging.scala:171)
	at org.apache.spark.sql.delta.metering.DeltaLogging.recordFrameProfile$(DeltaLogging.scala:169)
	at org.apache.spark.sql.delta.catalog.DeltaCatalog.recordFrameProfile(DeltaCatalog.scala:67)
	at org.apache.spark.sql.delta.catalog.DeltaCatalog.loadTable(DeltaCatalog.scala:228)
	at io.unitycatalog.spark.UCSingleCatalog.loadTable(UCSingleCatalog.scala:73)
	at org.apache.spark.sql.connector.catalog.CatalogV2Util$.getTable(CatalogV2Util.scala:363)
	at org.apache.spark.sql.connector.catalog.CatalogV2Util$.loadTable(CatalogV2Util.scala:337)
	at org.apache.spark.sql.catalyst.analysis.Analyzer$ResolveRelations$.$anonfun$lookupTableOrView$2(Analyzer.scala:1228)
[...]&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Sep 2025 18:43:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/geometry-column-type-breaks-all-access-to-table-from-spark/m-p/131816#M49248</guid>
      <dc:creator>sfishel18</dc:creator>
      <dc:date>2025-09-12T18:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: GEOMETRY column type breaks all access to table from Spark</title>
      <link>https://community.databricks.com/t5/data-engineering/geometry-column-type-breaks-all-access-to-table-from-spark/m-p/131817#M49249</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have filed an issue here:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/unitycatalog/unitycatalog/issues/1077" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/unitycatalog/unitycatalog/issues/1077&lt;/A&gt;&lt;SPAN&gt;. But also wanted to ask for help here since this is a Databricks-specific column type.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 18:44:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/geometry-column-type-breaks-all-access-to-table-from-spark/m-p/131817#M49249</guid>
      <dc:creator>sfishel18</dc:creator>
      <dc:date>2025-09-12T18:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: GEOMETRY column type breaks all access to table from Spark</title>
      <link>https://community.databricks.com/t5/data-engineering/geometry-column-type-breaks-all-access-to-table-from-spark/m-p/132592#M49566</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/184207"&gt;@sfishel18&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;This error surely is should be handled better. However the fix will have to go via UC oss (for any unknown type)&lt;/P&gt;
&lt;P&gt;Meanwhile, where are you trying to access&lt;SPAN&gt;&amp;nbsp;the table? Where is your Spark workload running?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 18:56:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/geometry-column-type-breaks-all-access-to-table-from-spark/m-p/132592#M49566</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-09-19T18:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: GEOMETRY column type breaks all access to table from Spark</title>
      <link>https://community.databricks.com/t5/data-engineering/geometry-column-type-breaks-all-access-to-table-from-spark/m-p/132594#M49568</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/23233"&gt;@NandiniN&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;My workload is running on the Wherobots platform.&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 19:16:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/geometry-column-type-breaks-all-access-to-table-from-spark/m-p/132594#M49568</guid>
      <dc:creator>sfishel18</dc:creator>
      <dc:date>2025-09-19T19:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: GEOMETRY column type breaks all access to table from Spark</title>
      <link>https://community.databricks.com/t5/data-engineering/geometry-column-type-breaks-all-access-to-table-from-spark/m-p/132596#M49569</link>
      <description>&lt;P&gt;Reading the UC OSS doc -&amp;nbsp;&lt;A href="https://docs.unitycatalog.io/usage/tables/formats/" target="_blank"&gt;https://docs.unitycatalog.io/usage/tables/formats/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;it does not support all data types&lt;/P&gt;
&lt;TABLE width="834px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="79.9922px"&gt;&lt;CODE&gt;columns&lt;/CODE&gt;&lt;/TD&gt;
&lt;TD width="753.008px"&gt;The columns of the table in SQL-like format "column_name column_data_type". Supported data types include&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;BOOLEAN, BYTE, SHORT, INT, LONG, FLOAT, DOUBLE, DATE, TIMESTAMP, TIMESTAMP_NTZ, STRING, BINARY, DECIMAL&lt;/CODE&gt;. Separate multiple columns with a comma (e.g., "&lt;CODE&gt;id INT, name STRING&lt;/CODE&gt;")&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Databricks sdk doc&amp;nbsp;&lt;A href="https://databricks-sdk-py.readthedocs.io/en/latest/dbdataclasses/catalog.html#databricks.sdk.service.catalog.ColumnTypeName" target="_blank"&gt;https://databricks-sdk-py.readthedocs.io/en/latest/dbdataclasses/catalog.html#databricks.sdk.service.catalog.ColumnTypeName&lt;/A&gt;&amp;nbsp;does support it.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/data-types/geometry-type" target="_blank"&gt;https://docs.databricks.com/aws/en/sql/language-manual/data-types/geometry-type&lt;/A&gt;&amp;nbsp;is supported on&amp;nbsp;&lt;SPAN&gt;Databricks Runtime&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;17.1 and above.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And can you please share the details of the table as well,&amp;nbsp;Iceberg tables do not support&amp;nbsp;&lt;CODE&gt;GEOMETRY&lt;/CODE&gt;&amp;nbsp;columns.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 19:32:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/geometry-column-type-breaks-all-access-to-table-from-spark/m-p/132596#M49569</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-09-19T19:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: GEOMETRY column type breaks all access to table from Spark</title>
      <link>https://community.databricks.com/t5/data-engineering/geometry-column-type-breaks-all-access-to-table-from-spark/m-p/132716#M49613</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/23233"&gt;@NandiniN&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;To my understanding, there is no way to use the Databricks SDK as a catalog implementation in an external Spark workload, correct?&lt;/P&gt;&lt;P&gt;The table I'm using is a Delta table I created from a Databricks notebook. The rows represent some areas-of-interest for spatial analysis, with my geometry-typed column encoding the polygon of the area.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 16:51:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/geometry-column-type-breaks-all-access-to-table-from-spark/m-p/132716#M49613</guid>
      <dc:creator>sfishel18</dc:creator>
      <dc:date>2025-09-22T16:51:05Z</dc:date>
    </item>
  </channel>
</rss>

