<?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: Foreign Catalog with Case Sensitive PostgreSQL in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/foreign-catalog-with-case-sensitive-postgresql/m-p/49564#M28582</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am able to query the pg_catalog database which has all lower case table names, so the connection is working.&lt;/P&gt;&lt;P&gt;I am unable to query the tables in my "public" schema, as they have capitalization in the table names.&lt;/P&gt;&lt;P&gt;If I query with no backticks or quotes, the lowercase and capitalized table name both give me this error.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Error:&amp;nbsp;&lt;A href="https://docs.databricks.com/error-messages/table-or-view-not-found-error-class.html" target="_blank" rel="noopener noreferrer"&gt;[TABLE_OR_VIEW_NOT_FOUND]&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;The&amp;nbsp;table&amp;nbsp;or&amp;nbsp;view&amp;nbsp;&lt;/SPAN&gt;&amp;lt;foreign_catalog&amp;gt;&lt;SPAN&gt;.&lt;/SPAN&gt;public&lt;SPAN&gt;.&lt;/SPAN&gt;&amp;lt;table&amp;gt;&lt;SPAN&gt;&amp;nbsp;cannot&amp;nbsp;be&amp;nbsp;found.&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If I query with quotes, I get this error&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;[PARSE_SYNTAX_ERROR] Syntax error at or near '"&amp;lt;table&amp;gt;"'.line 1, pos 39&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;If I query with backticks, I get this error&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://docs.databricks.com/error-messages/table-or-view-not-found-error-class.html" target="_blank" rel="noopener noreferrer"&gt;[TABLE_OR_VIEW_NOT_FOUND]&lt;/A&gt;&amp;nbsp;The&amp;nbsp;table&amp;nbsp;or&amp;nbsp;view&amp;nbsp;&amp;lt;foreign_catalog&amp;gt;.public.&amp;lt;table&amp;gt;&amp;nbsp;cannot&amp;nbsp;be&amp;nbsp;found.&amp;nbsp;Verify&amp;nbsp;the&amp;nbsp;spelling&amp;nbsp;and&amp;nbsp;correctness&amp;nbsp;of&amp;nbsp;the&amp;nbsp;schema&amp;nbsp;and&amp;nbsp;catalog. If&amp;nbsp;you&amp;nbsp;did&amp;nbsp;not&amp;nbsp;qualify&amp;nbsp;the&amp;nbsp;name&amp;nbsp;with&amp;nbsp;a&amp;nbsp;schema,&amp;nbsp;verify&amp;nbsp;the&amp;nbsp;current_schema()&amp;nbsp;output,&amp;nbsp;or&amp;nbsp;qualify&amp;nbsp;the&amp;nbsp;name&amp;nbsp;with&amp;nbsp;the&amp;nbsp;correct&amp;nbsp;schema&amp;nbsp;and&amp;nbsp;catalog. To&amp;nbsp;tolerate&amp;nbsp;the&amp;nbsp;error&amp;nbsp;on&amp;nbsp;drop&amp;nbsp;use&amp;nbsp;DROP&amp;nbsp;VIEW&amp;nbsp;IF&amp;nbsp;EXISTS&amp;nbsp;or&amp;nbsp;DROP&amp;nbsp;TABLE&amp;nbsp;IF&amp;nbsp;EXISTS.;&amp;nbsp;line&amp;nbsp;1,&amp;nbsp;pos&amp;nbsp;14&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Fri, 20 Oct 2023 07:34:51 GMT</pubDate>
    <dc:creator>MC8D</dc:creator>
    <dc:date>2023-10-20T07:34:51Z</dc:date>
    <item>
      <title>Foreign Catalog with Case Sensitive PostgreSQL</title>
      <link>https://community.databricks.com/t5/data-engineering/foreign-catalog-with-case-sensitive-postgresql/m-p/49508#M28570</link>
      <description>&lt;P&gt;I am trying to query my postgresql read replica as a foreign catalog.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I can sucessfuly test the connection.&lt;/LI&gt;&lt;LI&gt;I can see the database names.&lt;/LI&gt;&lt;LI&gt;The table names are auto populated correctly.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;However when I try to view or query a table, I get the following error. (Names redacted)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Failed to request /ajax-api/2.1/unity-catalog/tables/&amp;lt;foreign_catalog&amp;gt;.&amp;lt;db&amp;gt;.&amp;lt;table&amp;gt;?include_browse=true: 404 Table '&amp;lt;foreign_catalog&amp;gt;.&amp;lt;db&amp;gt;.&amp;lt;table&amp;gt;' does not exist.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;When I query this database via python, I usually need to use case sensitive names, and I suspect that is the issue.&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Foreign Catalog table appears as "table".&lt;/LI&gt;&lt;LI&gt;In PostgreSQL I would usually query it as 'select * from "Table"'&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any ideas of if case sensitive postgresql is already solved with Foreign Catalogs or what the problem might be?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 03:33:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/foreign-catalog-with-case-sensitive-postgresql/m-p/49508#M28570</guid>
      <dc:creator>MC8D</dc:creator>
      <dc:date>2023-10-19T03:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign Catalog with Case Sensitive PostgreSQL</title>
      <link>https://community.databricks.com/t5/data-engineering/foreign-catalog-with-case-sensitive-postgresql/m-p/49564#M28582</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am able to query the pg_catalog database which has all lower case table names, so the connection is working.&lt;/P&gt;&lt;P&gt;I am unable to query the tables in my "public" schema, as they have capitalization in the table names.&lt;/P&gt;&lt;P&gt;If I query with no backticks or quotes, the lowercase and capitalized table name both give me this error.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Error:&amp;nbsp;&lt;A href="https://docs.databricks.com/error-messages/table-or-view-not-found-error-class.html" target="_blank" rel="noopener noreferrer"&gt;[TABLE_OR_VIEW_NOT_FOUND]&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;The&amp;nbsp;table&amp;nbsp;or&amp;nbsp;view&amp;nbsp;&lt;/SPAN&gt;&amp;lt;foreign_catalog&amp;gt;&lt;SPAN&gt;.&lt;/SPAN&gt;public&lt;SPAN&gt;.&lt;/SPAN&gt;&amp;lt;table&amp;gt;&lt;SPAN&gt;&amp;nbsp;cannot&amp;nbsp;be&amp;nbsp;found.&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If I query with quotes, I get this error&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;[PARSE_SYNTAX_ERROR] Syntax error at or near '"&amp;lt;table&amp;gt;"'.line 1, pos 39&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;If I query with backticks, I get this error&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://docs.databricks.com/error-messages/table-or-view-not-found-error-class.html" target="_blank" rel="noopener noreferrer"&gt;[TABLE_OR_VIEW_NOT_FOUND]&lt;/A&gt;&amp;nbsp;The&amp;nbsp;table&amp;nbsp;or&amp;nbsp;view&amp;nbsp;&amp;lt;foreign_catalog&amp;gt;.public.&amp;lt;table&amp;gt;&amp;nbsp;cannot&amp;nbsp;be&amp;nbsp;found.&amp;nbsp;Verify&amp;nbsp;the&amp;nbsp;spelling&amp;nbsp;and&amp;nbsp;correctness&amp;nbsp;of&amp;nbsp;the&amp;nbsp;schema&amp;nbsp;and&amp;nbsp;catalog. If&amp;nbsp;you&amp;nbsp;did&amp;nbsp;not&amp;nbsp;qualify&amp;nbsp;the&amp;nbsp;name&amp;nbsp;with&amp;nbsp;a&amp;nbsp;schema,&amp;nbsp;verify&amp;nbsp;the&amp;nbsp;current_schema()&amp;nbsp;output,&amp;nbsp;or&amp;nbsp;qualify&amp;nbsp;the&amp;nbsp;name&amp;nbsp;with&amp;nbsp;the&amp;nbsp;correct&amp;nbsp;schema&amp;nbsp;and&amp;nbsp;catalog. To&amp;nbsp;tolerate&amp;nbsp;the&amp;nbsp;error&amp;nbsp;on&amp;nbsp;drop&amp;nbsp;use&amp;nbsp;DROP&amp;nbsp;VIEW&amp;nbsp;IF&amp;nbsp;EXISTS&amp;nbsp;or&amp;nbsp;DROP&amp;nbsp;TABLE&amp;nbsp;IF&amp;nbsp;EXISTS.;&amp;nbsp;line&amp;nbsp;1,&amp;nbsp;pos&amp;nbsp;14&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 20 Oct 2023 07:34:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/foreign-catalog-with-case-sensitive-postgresql/m-p/49564#M28582</guid>
      <dc:creator>MC8D</dc:creator>
      <dc:date>2023-10-20T07:34:51Z</dc:date>
    </item>
  </channel>
</rss>

