<?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 SQL statement in Warehouse in Data Warehouse</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/SQL-statement-in-Warehouse/m-p/3777309#M665</link>
    <description>&lt;P&gt;Hi all&lt;BR /&gt;I am trying to execute a SQL query in Warehouse. But I am getting an error.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;SELECT 
  d.ExpectedDate,
  COALESCE(x.Rate, NULL) AS Rate,
  x.Currency
FROM (
  SELECT TOP (SELECT COUNT(DISTINCT Date) FROM TABLE1) 
         DATEADD(day, ROW_NUMBER() OVER (ORDER BY (SELECT NULL)), '1970-01-01') AS ExpectedDate
  FROM sys.tables 
  WHERE object_id = OBJECT_ID('TABLE1')
) AS d
LEFT JOIN TABLE1 x ON d.ExpectedDate = x.Date
ORDER BY d.ExpectedDate;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV class=""&gt;The query references an object that is not supported in distributed processing mode.&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV&gt;Msg 13426, Level 10, State 4, CODE LINE 1&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;What did I miss? Appreciate your help.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2024 06:52:57 GMT</pubDate>
    <dc:creator>jashfabric</dc:creator>
    <dc:date>2024-03-20T06:52:57Z</dc:date>
    <item>
      <title>SQL statement in Warehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/SQL-statement-in-Warehouse/m-p/3777309#M665</link>
      <description>&lt;P&gt;Hi all&lt;BR /&gt;I am trying to execute a SQL query in Warehouse. But I am getting an error.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;SELECT 
  d.ExpectedDate,
  COALESCE(x.Rate, NULL) AS Rate,
  x.Currency
FROM (
  SELECT TOP (SELECT COUNT(DISTINCT Date) FROM TABLE1) 
         DATEADD(day, ROW_NUMBER() OVER (ORDER BY (SELECT NULL)), '1970-01-01') AS ExpectedDate
  FROM sys.tables 
  WHERE object_id = OBJECT_ID('TABLE1')
) AS d
LEFT JOIN TABLE1 x ON d.ExpectedDate = x.Date
ORDER BY d.ExpectedDate;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV class=""&gt;The query references an object that is not supported in distributed processing mode.&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV&gt;Msg 13426, Level 10, State 4, CODE LINE 1&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;What did I miss? Appreciate your help.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 06:52:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/SQL-statement-in-Warehouse/m-p/3777309#M665</guid>
      <dc:creator>jashfabric</dc:creator>
      <dc:date>2024-03-20T06:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: SQL statement in Warehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/SQL-statement-in-Warehouse/m-p/3777374#M666</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="704119" data-lia-user-login="jashfabric" class="lia-mention lia-mention-user"&gt;jashfabric&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;&lt;SPAN&gt;The error&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;The query references an object that is not supported in distributed processing mode&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;indicates that you've used an object or function that can't be used while you query data in Microsoft Fabric Warehouse.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Fabric Warehouse uses distributed processing for performance,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;but some objects and constructs aren't supported in this mode.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;The error message indicates that your query references an unsupported object,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;likely&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class=""&gt;sys.tables&lt;/CODE&gt;&lt;SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;You can refer to this link for more information:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-warehouse/tsql-surface-area" target="_blank" rel="noopener nofollow noreferrer"&gt;Link1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Please let me know if you have any further questions.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 07:07:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/SQL-statement-in-Warehouse/m-p/3777374#M666</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-20T07:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: SQL statement in Warehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/SQL-statement-in-Warehouse/m-p/3778212#M667</link>
      <description>&lt;P&gt;Thanks Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;That helps.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 10:20:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/SQL-statement-in-Warehouse/m-p/3778212#M667</guid>
      <dc:creator>jashfabric</dc:creator>
      <dc:date>2024-03-20T10:20:52Z</dc:date>
    </item>
  </channel>
</rss>

