<?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: Bug in unity catalog registering external database that is case sensitive in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/bug-in-unity-catalog-registering-external-database-that-is-case/m-p/62246#M31933</link>
    <description>&lt;P&gt;Hi Kaniz, thank you for your feedback.&lt;BR /&gt;Databases that I have to link cannot be changed, other teams and products rely on those databases as well, this change would be disruptive.&lt;/P&gt;&lt;P&gt;I think this is a limitation in the unity catalog behaviour, as it should take in account that external databases could have a case sensitive collation, either:&lt;BR /&gt;&lt;BR /&gt;- keeping the name of the tables as they are, leaving up to the user to deal with case issues for external tables.&lt;BR /&gt;- remapping that internally and hide it to the user&lt;BR /&gt;- providing some API where to hook on in the database registration, or perform it programmatically.&lt;BR /&gt;&lt;BR /&gt;So I'll open up a ticket support for it.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2024 15:59:02 GMT</pubDate>
    <dc:creator>AurelioGesino</dc:creator>
    <dc:date>2024-02-28T15:59:02Z</dc:date>
    <item>
      <title>Bug in unity catalog registering external database that is case sensitive</title>
      <link>https://community.databricks.com/t5/data-engineering/bug-in-unity-catalog-registering-external-database-that-is-case/m-p/61987#M31866</link>
      <description>&lt;P&gt;I successfully registered in my Unity Catalog an external Database ```dwcore``` that is hosted on SQL server.&lt;BR /&gt;I first added the connection in "External Data": tested the connection and it was successful.&lt;BR /&gt;I then added the database on top: tested the connection and it was successful.&lt;/P&gt;&lt;P&gt;Then on the unity catalog explorer I checked I saw that the tables can be seen under the "dbo" schema.&lt;BR /&gt;I can see all table listed on the tree on the left.&lt;BR /&gt;But then, if I try to query any table, the table is not found by Spark.&lt;BR /&gt;&lt;BR /&gt;I tested with another postgres database and everything works like a charm.&lt;BR /&gt;I think the issue is this: my SQL server table names are case sensitive.&lt;BR /&gt;&lt;BR /&gt;So for example I have a table "AllAlarms" that in the external catalog gets registered all lowercase.&lt;BR /&gt;It becomes "allalarms".&lt;BR /&gt;So when I try to query the table in the unity catalog the real SQL table does not get resolved, because I'm querying with a lowercase name when it should have been registered registering its real case.&lt;BR /&gt;I tried as well to set Spark to be&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;spark.sql.caseSensitive', True&lt;/PRE&gt;&lt;P&gt;but that does not help, because the error occurs when the table is registered in the catalog.&lt;/P&gt;&lt;P&gt;So I think this is a bug with Databricks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 15:00:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/bug-in-unity-catalog-registering-external-database-that-is-case/m-p/61987#M31866</guid>
      <dc:creator>AurelioGesino</dc:creator>
      <dc:date>2024-02-26T15:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in unity catalog registering external database that is case sensitive</title>
      <link>https://community.databricks.com/t5/data-engineering/bug-in-unity-catalog-registering-external-database-that-is-case/m-p/62246#M31933</link>
      <description>&lt;P&gt;Hi Kaniz, thank you for your feedback.&lt;BR /&gt;Databases that I have to link cannot be changed, other teams and products rely on those databases as well, this change would be disruptive.&lt;/P&gt;&lt;P&gt;I think this is a limitation in the unity catalog behaviour, as it should take in account that external databases could have a case sensitive collation, either:&lt;BR /&gt;&lt;BR /&gt;- keeping the name of the tables as they are, leaving up to the user to deal with case issues for external tables.&lt;BR /&gt;- remapping that internally and hide it to the user&lt;BR /&gt;- providing some API where to hook on in the database registration, or perform it programmatically.&lt;BR /&gt;&lt;BR /&gt;So I'll open up a ticket support for it.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 15:59:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/bug-in-unity-catalog-registering-external-database-that-is-case/m-p/62246#M31933</guid>
      <dc:creator>AurelioGesino</dc:creator>
      <dc:date>2024-02-28T15:59:02Z</dc:date>
    </item>
  </channel>
</rss>

