<?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: Create external tables with properties set in delta log and no collation in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/create-external-tables-with-properties-set-in-delta-log-and-no/m-p/131578#M49145</link>
    <description>&lt;P&gt;But, we would need to achieve it via SQL interface as there are multiple of such tables that needs on-boarding&lt;/P&gt;</description>
    <pubDate>Wed, 10 Sep 2025 18:12:16 GMT</pubDate>
    <dc:creator>santosh-santosh</dc:creator>
    <dc:date>2025-09-10T18:12:16Z</dc:date>
    <item>
      <title>Create external tables with properties set in delta log and no collation</title>
      <link>https://community.databricks.com/t5/data-engineering/create-external-tables-with-properties-set-in-delta-log-and-no/m-p/131574#M49141</link>
      <description>&lt;UL&gt;&lt;LI&gt;There is an external delta lake table that need to be mounted on to the unity catalog&lt;/LI&gt;&lt;LI&gt;It has some properties configured in the _delta_log folder already&lt;/LI&gt;&lt;LI&gt;When try to create table using&amp;nbsp;&lt;EM&gt;CREATE TABLE catalog_name.schema_name.table_name USING DELTA LOCATION 's3://table_path'&lt;/EM&gt;&amp;nbsp;it throws,&amp;nbsp;&lt;EM&gt;[DELTA_CREATE_TABLE_WITH_DIFFERENT_PROPERTY] The specified properties do not match the existing properties at&amp;nbsp;'s3://table_path'&amp;nbsp;&lt;/EM&gt;due to the collation property getting added by default to the create table query&lt;/LI&gt;&lt;LI&gt;How to mount such external table to the unity catalog?&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 10 Sep 2025 18:01:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-external-tables-with-properties-set-in-delta-log-and-no/m-p/131574#M49141</guid>
      <dc:creator>santosh-santosh</dc:creator>
      <dc:date>2025-09-10T18:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create external tables with properties set in delta log and no collation</title>
      <link>https://community.databricks.com/t5/data-engineering/create-external-tables-with-properties-set-in-delta-log-and-no/m-p/131577#M49144</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Root Cause:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Unity Catalog’s CREATE TABLE command automatically adds default Delta table properties (like collation) which do not match the existing properties stored inside the table’s _delta_log folder on disk.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution thinking:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Use&amp;nbsp;Unity Catalog CLI (uc table create) with parameters that exactly match the existing table metadata and properties.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CLI command is used to create an external table in Unity Catalog that points to existing data stored in an external location (e.g., an S3 path containing a Delta table).&lt;/P&gt;&lt;P&gt;Key Required Parameters&lt;BR /&gt;--full_name: The full name of the table including catalog, schema, and table name.&lt;BR /&gt;Example: my_catalog.my_schema.my_table&lt;/P&gt;&lt;P&gt;--columns: The schema of the table expressed as SQL column definitions with names and data types.&lt;BR /&gt;Example: "id INT, name STRING, ts TIMESTAMP"&lt;/P&gt;&lt;P&gt;--storage_location: The external storage path where the Delta table files reside.&lt;BR /&gt;Example: s3://my-bucket/path/to/delta_table&lt;/P&gt;&lt;P&gt;Optional Parameters&lt;BR /&gt;--format: Data format (default is DELTA), explicitly specify if needed.&lt;/P&gt;&lt;P&gt;--properties: Table properties JSON string that must exactly match the existing Delta table properties on disk to avoid mismatch errors.&lt;/P&gt;&lt;P&gt;Example CLI command to register existing Delta table:&lt;BR /&gt;bash&lt;BR /&gt;bin/uc table create \&lt;BR /&gt;--full_name my_catalog.my_schema.my_table \&lt;BR /&gt;--columns "id INT, name STRING, ts TIMESTAMP" \&lt;BR /&gt;--storage_location "s3://my-bucket/path/to/delta_table" \&lt;BR /&gt;--format DELTA \&lt;BR /&gt;--properties '{"delta.appendOnly": "false", "delta.autoOptimize.optimizeWrite.enabled": "true", "collation": "..."}'&lt;BR /&gt;Here, --properties must reflect the actual properties from the _delta_log folder of the existing Delta table (including the collation property if present).&lt;/P&gt;&lt;P&gt;This avoids errors such as [DELTA_CREATE_TABLE_WITH_DIFFERENT_PROPERTY] caused due to property mismatches.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 18:09:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-external-tables-with-properties-set-in-delta-log-and-no/m-p/131577#M49144</guid>
      <dc:creator>ManojkMohan</dc:creator>
      <dc:date>2025-09-10T18:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create external tables with properties set in delta log and no collation</title>
      <link>https://community.databricks.com/t5/data-engineering/create-external-tables-with-properties-set-in-delta-log-and-no/m-p/131578#M49145</link>
      <description>&lt;P&gt;But, we would need to achieve it via SQL interface as there are multiple of such tables that needs on-boarding&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 18:12:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-external-tables-with-properties-set-in-delta-log-and-no/m-p/131578#M49145</guid>
      <dc:creator>santosh-santosh</dc:creator>
      <dc:date>2025-09-10T18:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create external tables with properties set in delta log and no collation</title>
      <link>https://community.databricks.com/t5/data-engineering/create-external-tables-with-properties-set-in-delta-log-and-no/m-p/131579#M49146</link>
      <description>&lt;P&gt;Use standard CREATE TABLE SQL DDL commands specifying:&lt;/P&gt;&lt;P&gt;The full Unity Catalog table name: catalog.schema.table&lt;/P&gt;&lt;P&gt;The exact column schema to match the external Delta table schema&lt;/P&gt;&lt;P&gt;The external LOCATION of the existing Delta table&lt;/P&gt;&lt;P&gt;The USING DELTA clause to specify data format&lt;/P&gt;&lt;P&gt;This will register an external table in Unity Catalog that points to the existing Delta files without moving or modifying data.&lt;/P&gt;&lt;P&gt;The table properties must match the existing Delta table properties exactly.&lt;BR /&gt;If Unity Catalog/Databricks adds extra default properties such as collation, and they differ from the Delta table's _delta_log properties, you may face property mismatch errors&lt;/P&gt;&lt;P&gt;To avoid conflicts with automatic property additions (like collation), explicitly specify all existing properties in TBLPROPERTIES&lt;/P&gt;&lt;P&gt;to onboard multiple tables efficiently:&lt;BR /&gt;Create a script or notebook to:&lt;/P&gt;&lt;P&gt;Read the schemas and properties of all existing external Delta tables.&lt;/P&gt;&lt;P&gt;Generate the SQL CREATE TABLE statements with schema, location, and exact properties.&lt;/P&gt;&lt;P&gt;Execute those SQL statements in batch to register all external tables in Unity Catalog.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 18:17:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-external-tables-with-properties-set-in-delta-log-and-no/m-p/131579#M49146</guid>
      <dc:creator>ManojkMohan</dc:creator>
      <dc:date>2025-09-10T18:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create external tables with properties set in delta log and no collation</title>
      <link>https://community.databricks.com/t5/data-engineering/create-external-tables-with-properties-set-in-delta-log-and-no/m-p/131625#M49166</link>
      <description>&lt;P&gt;Thanks for the reply Manoj&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;To avoid conflicts with automatic property additions (like collation), explicitly specify all existing properties in TBLPROPERTIES&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Even when we try adding the&amp;nbsp;TBLPROPERTIES param, its still failing with the mismatch of properties as the collation is added by Databricks to all CREATE TABLE queries by default&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 08:02:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-external-tables-with-properties-set-in-delta-log-and-no/m-p/131625#M49166</guid>
      <dc:creator>santosh-santosh</dc:creator>
      <dc:date>2025-09-11T08:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create external tables with properties set in delta log and no collation</title>
      <link>https://community.databricks.com/t5/data-engineering/create-external-tables-with-properties-set-in-delta-log-and-no/m-p/131628#M49168</link>
      <description>&lt;P&gt;I will try reproducing this, i have sent you a DM can you check that&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 08:32:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-external-tables-with-properties-set-in-delta-log-and-no/m-p/131628#M49168</guid>
      <dc:creator>ManojkMohan</dc:creator>
      <dc:date>2025-09-11T08:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create external tables with properties set in delta log and no collation</title>
      <link>https://community.databricks.com/t5/data-engineering/create-external-tables-with-properties-set-in-delta-log-and-no/m-p/131748#M49221</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/183984"&gt;@santosh-santosh&lt;/a&gt;&amp;nbsp;Did you execute the steps part by part i shared in the DM ?&amp;nbsp;&lt;SPAN&gt;Step 0: Define your external tables,&amp;nbsp;Step 1: Inspect external Delta table schema &amp;amp; properties&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Success Check:&lt;/P&gt;&lt;P&gt;Ensure all expected properties&amp;nbsp; are captured&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Step 2: Inspect Unity Catalog defaults&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Success Check:&lt;/P&gt;&lt;P&gt;Check the spark.sql.collation property in the DESCRIBE EXTENDED output.&lt;/P&gt;&lt;P&gt;Note all UC default properties&amp;nbsp;&lt;SPAN&gt;Step 3: Generate CREATE TABLE statements&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Success Check:&lt;/P&gt;&lt;P&gt;Query the table after creation&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check that the location points to the correct S3 path.&lt;/P&gt;&lt;P&gt;Check TBLPROPERTIES matches expected.&amp;nbsp; &amp;nbsp;can you let me know if these steps are working as expected&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 09:09:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-external-tables-with-properties-set-in-delta-log-and-no/m-p/131748#M49221</guid>
      <dc:creator>ManojkMohan</dc:creator>
      <dc:date>2025-09-12T09:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create external tables with properties set in delta log and no collation</title>
      <link>https://community.databricks.com/t5/data-engineering/create-external-tables-with-properties-set-in-delta-log-and-no/m-p/132675#M49594</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/155141"&gt;@ManojkMohan&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;In the steps that you mentioned, I'm still getting the same issue&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CREATE TABLE catalog.schema.table1 (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;id BIGINT,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;name STRING&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;USING DELTA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LOCATION 's3://bucket/path/table1'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TBLPROPERTIES (&lt;/SPAN&gt;&lt;BR /&gt;... all my properties in the _delta_log .....&lt;BR /&gt;&lt;SPAN&gt;'spark.sql.collation' = 'UTF8_BINARY'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;It says the&amp;nbsp;&lt;SPAN&gt;spark.sql.collation is not matching with the propeties in the _delta_log if that particular table&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 12:29:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-external-tables-with-properties-set-in-delta-log-and-no/m-p/132675#M49594</guid>
      <dc:creator>santosh-santosh</dc:creator>
      <dc:date>2025-09-22T12:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create external tables with properties set in delta log and no collation</title>
      <link>https://community.databricks.com/t5/data-engineering/create-external-tables-with-properties-set-in-delta-log-and-no/m-p/132679#M49596</link>
      <description>&lt;P&gt;can you share the below logs here if possible&lt;/P&gt;&lt;TABLE width="487"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Log Source&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;How to Enable/Use&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Unity Catalog audit logs&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Enable in workspace settings, configure external log destination&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Spark/Delta engine logs&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Set log level DEBUG, configure cluster log collection&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Query logs as Delta tables&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;If audit/logs ingested as tables&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Delta transaction logs&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Inspect raw&amp;nbsp;_delta_log&amp;nbsp;JSON files &amp;amp; DESCRIBE DETAIL&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;These logs combined will pinpoint if&amp;nbsp;spark.sql.collation&amp;nbsp;mismatch is due to UC defaults, inconsistency in CLI properties payload, or a Delta transaction metadata drift&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 12:43:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-external-tables-with-properties-set-in-delta-log-and-no/m-p/132679#M49596</guid>
      <dc:creator>ManojkMohan</dc:creator>
      <dc:date>2025-09-22T12:43:21Z</dc:date>
    </item>
  </channel>
</rss>

