<?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 Foreign Catalog refresh in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/foreign-catalog-refresh/m-p/109390#M43294</link>
    <description>&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;I have recently created one Foreign catalog from AWS Redshift in databricks and I could see some tables too but when I ran REFRESH FOREIGN SCHEMA command, it failed with following error. I tried to search about it online but didn't get anything helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;error: single-row subquery returns more than one row code: 8001 context: card_check query: 84022749 location: funcs_int.cpp:132 process: query0_123_84022749 [pid=15019]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any help with this issue is highly appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dinesh&lt;/P&gt;</description>
    <pubDate>Fri, 07 Feb 2025 11:38:04 GMT</pubDate>
    <dc:creator>Dnirmania</dc:creator>
    <dc:date>2025-02-07T11:38:04Z</dc:date>
    <item>
      <title>Foreign Catalog refresh</title>
      <link>https://community.databricks.com/t5/data-engineering/foreign-catalog-refresh/m-p/109390#M43294</link>
      <description>&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;I have recently created one Foreign catalog from AWS Redshift in databricks and I could see some tables too but when I ran REFRESH FOREIGN SCHEMA command, it failed with following error. I tried to search about it online but didn't get anything helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;error: single-row subquery returns more than one row code: 8001 context: card_check query: 84022749 location: funcs_int.cpp:132 process: query0_123_84022749 [pid=15019]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any help with this issue is highly appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dinesh&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 11:38:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/foreign-catalog-refresh/m-p/109390#M43294</guid>
      <dc:creator>Dnirmania</dc:creator>
      <dc:date>2025-02-07T11:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign Catalog refresh</title>
      <link>https://community.databricks.com/t5/data-engineering/foreign-catalog-refresh/m-p/109397#M43298</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110266"&gt;@Dnirmania&lt;/a&gt;,&lt;/P&gt;
&lt;P class="p1"&gt;The error message "single-row subquery returns more than one row" indicates that a subquery used in your REFRESH FOREIGN SCHEMA command is expected to return only one row, but it is returning multiple rows. This is a common SQL error that occurs when a subquery is used in a context where only a single value is expected, but the subquery returns multiple values.&lt;/P&gt;
&lt;P class="p1"&gt;Ensure that the subquery returns only one row. You can do this by:&lt;/P&gt;
&lt;UL class="ul1"&gt;
&lt;LI class="li1"&gt;Using an aggregate function like MAX(), MIN(), or TOP 1 to limit the result to a single row.&lt;/LI&gt;
&lt;LI class="li1"&gt;Adding a WHERE clause to filter the results so that only one row is returned.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="p1"&gt;&lt;STRONG&gt;Check for Duplicates&lt;/STRONG&gt;: If the subquery is supposed to return a unique value, ensure that there are no duplicate values in the data that the subquery is querying.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 12:58:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/foreign-catalog-refresh/m-p/109397#M43298</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-02-07T12:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Foreign Catalog refresh</title>
      <link>https://community.databricks.com/t5/data-engineering/foreign-catalog-refresh/m-p/109404#M43303</link>
      <description>&lt;P&gt;&lt;SPAN&gt;REFRESH FOREIGN SCHEMA is databricks command to refresh foreign catalog and I don't have visibility about the queries which its runs internally.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 13:36:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/foreign-catalog-refresh/m-p/109404#M43303</guid>
      <dc:creator>Dnirmania</dc:creator>
      <dc:date>2025-02-07T13:36:07Z</dc:date>
    </item>
  </channel>
</rss>

