<?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 how to i able to read column mapping metadata for delta tables in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-i-able-to-read-column-mapping-metadata-for-delta-tables/m-p/55516#M30358</link>
    <description>&lt;P&gt;i want to read column mapping metadata&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/delta-io/delta/blob/master/PROTOCOL.md#column-mapping" target="_blank"&gt;https://github.com/delta-io/delta/blob/master/PROTOCOL.md#column-mapping&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;in above link we can able to find the code block with json data. the same data i want to read in pyspark.. is there any option to read that metadata from databricks please let me know&lt;/P&gt;&lt;P&gt;below code block i want to read for my delta tables&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "name" : "e",
    "type" : {
      "type" : "array",
      "elementType" : {
        "type" : "struct",
        "fields" : [ {
          "name" : "d",
          "type" : "integer",
          "nullable" : false,
          "metadata" : { 
            "delta.columnMapping.id": 5,
            "delta.columnMapping.physicalName": "col-a7f4159c-53be-4cb0-b81a-f7e5240cfc49"
          }
        } ]
      },
      "containsNull" : true
    },
    "nullable" : true,
    "metadata" : { 
      "delta.columnMapping.id": 4,
      "delta.columnMapping.physicalName": "col-5f422f40-de70-45b2-88ab-1d5c90e94db1"
    }
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Dec 2023 18:28:40 GMT</pubDate>
    <dc:creator>sher</dc:creator>
    <dc:date>2023-12-19T18:28:40Z</dc:date>
    <item>
      <title>how to i able to read column mapping metadata for delta tables</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-i-able-to-read-column-mapping-metadata-for-delta-tables/m-p/55516#M30358</link>
      <description>&lt;P&gt;i want to read column mapping metadata&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/delta-io/delta/blob/master/PROTOCOL.md#column-mapping" target="_blank"&gt;https://github.com/delta-io/delta/blob/master/PROTOCOL.md#column-mapping&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;in above link we can able to find the code block with json data. the same data i want to read in pyspark.. is there any option to read that metadata from databricks please let me know&lt;/P&gt;&lt;P&gt;below code block i want to read for my delta tables&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "name" : "e",
    "type" : {
      "type" : "array",
      "elementType" : {
        "type" : "struct",
        "fields" : [ {
          "name" : "d",
          "type" : "integer",
          "nullable" : false,
          "metadata" : { 
            "delta.columnMapping.id": 5,
            "delta.columnMapping.physicalName": "col-a7f4159c-53be-4cb0-b81a-f7e5240cfc49"
          }
        } ]
      },
      "containsNull" : true
    },
    "nullable" : true,
    "metadata" : { 
      "delta.columnMapping.id": 4,
      "delta.columnMapping.physicalName": "col-5f422f40-de70-45b2-88ab-1d5c90e94db1"
    }
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 18:28:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-i-able-to-read-column-mapping-metadata-for-delta-tables/m-p/55516#M30358</guid>
      <dc:creator>sher</dc:creator>
      <dc:date>2023-12-19T18:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to i able to read column mapping metadata for delta tables</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-i-able-to-read-column-mapping-metadata-for-delta-tables/m-p/55576#M30371</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Information about the delta table such as history information could be found by running a `describe history table_name`. A `rename column` operation could be found in the `operation` column with a value of `RENAME COLUMN`.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you then look at the corresponding delta transaction json file in the table's `_delta_log` directory, you will find the details. For example, if the column rename occurred in Delta version 1, you could go to the `&amp;lt;tableLocation&amp;gt;/_delta_log/&lt;SPAN&gt;00000000000000000001.json` file for the details. &lt;BR /&gt;&lt;BR /&gt;You could read this json file with `spark.read.json(path)`. Much of the data of interest to you would be in the&amp;nbsp; `metaData.schemaString` column.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 23:12:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-i-able-to-read-column-mapping-metadata-for-delta-tables/m-p/55576#M30371</guid>
      <dc:creator>brockb</dc:creator>
      <dc:date>2023-12-20T23:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to i able to read column mapping metadata for delta tables</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-i-able-to-read-column-mapping-metadata-for-delta-tables/m-p/57274#M30747</link>
      <description>&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jan 2024 07:44:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-i-able-to-read-column-mapping-metadata-for-delta-tables/m-p/57274#M30747</guid>
      <dc:creator>sher</dc:creator>
      <dc:date>2024-01-14T07:44:32Z</dc:date>
    </item>
  </channel>
</rss>

