<?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 Column Name Case sensitivity in DLT pipeline in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/column-name-case-sensitivity-in-dlt-pipeline/m-p/119559#M45910</link>
    <description>&lt;P&gt;I've a DLT pipeline that processes messages from event grid.&amp;nbsp;The schema of the message has two columns in different cases - "&lt;FONT face="courier new,courier"&gt;employee_id&lt;/FONT&gt;" and&amp;nbsp; "&lt;FONT face="courier new,courier"&gt;employee_ID&lt;/FONT&gt;",&lt;/P&gt;&lt;P&gt;I tried setting&lt;FONT face="courier new,courier"&gt; spark.sql.caseSensitive&lt;/FONT&gt; to &lt;FONT face="courier new,courier"&gt;true&lt;/FONT&gt; in my DLT notebook as well in DLT configuration, but it didn't work. It works in normal pyspark notebook, however it fails in DLT.&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;terminated with exception: [DELTA_DUPLICATE_COLUMNS_FOUND] Found duplicate column(s) in the data to save: data.message.empdetail.employee_id SQLSTATE: XXKST&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 18 May 2025 15:58:43 GMT</pubDate>
    <dc:creator>AmanSehgal</dc:creator>
    <dc:date>2025-05-18T15:58:43Z</dc:date>
    <item>
      <title>Column Name Case sensitivity in DLT pipeline</title>
      <link>https://community.databricks.com/t5/data-engineering/column-name-case-sensitivity-in-dlt-pipeline/m-p/119559#M45910</link>
      <description>&lt;P&gt;I've a DLT pipeline that processes messages from event grid.&amp;nbsp;The schema of the message has two columns in different cases - "&lt;FONT face="courier new,courier"&gt;employee_id&lt;/FONT&gt;" and&amp;nbsp; "&lt;FONT face="courier new,courier"&gt;employee_ID&lt;/FONT&gt;",&lt;/P&gt;&lt;P&gt;I tried setting&lt;FONT face="courier new,courier"&gt; spark.sql.caseSensitive&lt;/FONT&gt; to &lt;FONT face="courier new,courier"&gt;true&lt;/FONT&gt; in my DLT notebook as well in DLT configuration, but it didn't work. It works in normal pyspark notebook, however it fails in DLT.&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;terminated with exception: [DELTA_DUPLICATE_COLUMNS_FOUND] Found duplicate column(s) in the data to save: data.message.empdetail.employee_id SQLSTATE: XXKST&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 May 2025 15:58:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/column-name-case-sensitivity-in-dlt-pipeline/m-p/119559#M45910</guid>
      <dc:creator>AmanSehgal</dc:creator>
      <dc:date>2025-05-18T15:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Column Name Case sensitivity in DLT pipeline</title>
      <link>https://community.databricks.com/t5/data-engineering/column-name-case-sensitivity-in-dlt-pipeline/m-p/119632#M45932</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/15779"&gt;@AmanSehgal&lt;/a&gt;, DLT treat column names as case-insensitive, even if spark.sql.caseSensitive is set to true. That’s why employee_id and employee_ID are seen as duplicates and cause the error. To fix this, you’ll need to rename one of the columns so your schema has distinct names regardless of case.&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 14:10:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/column-name-case-sensitivity-in-dlt-pipeline/m-p/119632#M45932</guid>
      <dc:creator>Renu_</dc:creator>
      <dc:date>2025-05-19T14:10:06Z</dc:date>
    </item>
  </channel>
</rss>

