<?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: remote_query() is not working in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140686#M51509</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/153794"&gt;@tansgun&lt;/a&gt;&amp;nbsp;, here is &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/42241"&gt;@vr&lt;/a&gt;&amp;nbsp;what we need to enable from &lt;STRONG&gt;Workspace - Previews&lt;/STRONG&gt; to make it work:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Coffee77_0-1764572957682.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/22008i572CE5773BEFD64F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Coffee77_0-1764572957682.png" alt="Coffee77_0-1764572957682.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I had looked for that in Previews at account level and hence, I didn't find it.&lt;/P&gt;&lt;P&gt;After enabling that, it should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Dec 2025 07:26:14 GMT</pubDate>
    <dc:creator>Coffee77</dc:creator>
    <dc:date>2025-12-01T07:26:14Z</dc:date>
    <item>
      <title>remote_query() is not working</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140245#M51363</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am trying to experiment with remote_query() function according to the &lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/query-federation/remote-queries" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt;&lt;SPAN&gt;. The feature is in public preview, so I assume it should be available to everyone now.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;select * from remote_query(
  'my_connection',
  database =&amp;gt; 'mydb',
  dbtable =&amp;gt; 'my_table'
  )&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;Whenever I query, I am getting one of two errors:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[INVALID_USAGE_OF_STAR_OR_REGEX] Invalid usage of '*' in Project. SQLSTATE: 42000
== SQL (line 2, position 8) ==
select * from remote_query(
       ^&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;If I change `*` to a column name, say, `id`, I get the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[UNRESOLVED_COLUMN.WITHOUT_SUGGESTION] A column, variable, or function parameter with name `id` cannot be resolved.  SQLSTATE: 42703
== SQL (line 2, position 8) ==
select id from remote_query(
       ^^&lt;/LI-CODE&gt;&lt;P&gt;All prerequisites are satisfied: connection is live, which is confirmed by a Lakehouse Federation catalog built on top of the same connection. Runtime is 17.3 RTS, have USE CONNECTION (I am also the owner).&lt;/P&gt;&lt;P&gt;Can anyone please explain what I am doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 02:31:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140245#M51363</guid>
      <dc:creator>vr</dc:creator>
      <dc:date>2025-11-25T02:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: remote_query() is not working</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140524#M51456</link>
      <description>&lt;P&gt;Does the cluster (what you have used to run the query) have manage permission on the connection?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2025 15:35:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140524#M51456</guid>
      <dc:creator>GA4</dc:creator>
      <dc:date>2025-11-27T15:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: remote_query() is not working</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140542#M51458</link>
      <description>&lt;P&gt;In Databricks, identities can be users, groups, and service principals. Cluster cannot be granted a permission. But the user of the cluster – yes, it has USE CONNECTION, and also the owner of connection.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2025 18:25:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140542#M51458</guid>
      <dc:creator>vr</dc:creator>
      <dc:date>2025-11-27T18:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: remote_query() is not working</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140555#M51461</link>
      <description>&lt;P&gt;Which sql database are you trying to connect to? Depending on source, maybe you need to reference schema in addition to database and table. You can check, this is only a guess.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2025 20:41:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140555#M51461</guid>
      <dc:creator>Coffee77</dc:creator>
      <dc:date>2025-11-27T20:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: remote_query() is not working</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140561#M51465</link>
      <description>&lt;P&gt;Database is Postgres. I tried to prefix tables with schema, such as "public", but with no avail. Even something as trivial as "SELECT 1" returns the same error.&lt;/P&gt;&lt;P&gt;Database log also shows no activity – no successful or failed queries.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2025 22:32:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140561#M51465</guid>
      <dc:creator>vr</dc:creator>
      <dc:date>2025-11-27T22:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: remote_query() is not working</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140576#M51473</link>
      <description>&lt;P&gt;So, you mean, same connection working fine in SQL federated queries is not working with &lt;SPAN&gt;remote_query()&lt;/SPAN&gt;? Really, really strange, it seems as if that function was not available in your environment... Not played yet with remote_query() but I'll do and let you know!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 08:42:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140576#M51473</guid>
      <dc:creator>Coffee77</dc:creator>
      <dc:date>2025-11-28T08:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: remote_query() is not working</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140582#M51475</link>
      <description>&lt;P&gt;Same issues from my end, both using All-purpose or SQL Warehouse clusters over a connection that works with SQL federation:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Coffee77_0-1764322632277.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/21991i87A3A12BAB359D11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Coffee77_0-1764322632277.png" alt="Coffee77_0-1764322632277.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Coffee77_1-1764322656184.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/21992i1FA9E7EEAA599954/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Coffee77_1-1764322656184.png" alt="Coffee77_1-1764322656184.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 09:40:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140582#M51475</guid>
      <dc:creator>Coffee77</dc:creator>
      <dc:date>2025-11-28T09:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: remote_query() is not working</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140583#M51476</link>
      <description>&lt;P&gt;Thanks for testing&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/179536"&gt;@Coffee77&lt;/a&gt;. Yeah, that's really strange:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Federated queries over the same connection – work.&lt;/LI&gt;&lt;LI&gt;Spark JDBC directly to DB – works (this does not really use the connection, but just to add more evidence for proper connectivity).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Contacted Microsoft Support.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 09:57:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140583#M51476</guid>
      <dc:creator>vr</dc:creator>
      <dc:date>2025-11-28T09:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: remote_query() is not working</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140599#M51480</link>
      <description>&lt;P&gt;A little bit frustrating as there is no more we can do or test. I'll be also waiting for a response as it seems to be a bug or at least something is missing out in the documentation.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 11:44:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140599#M51480</guid>
      <dc:creator>Coffee77</dc:creator>
      <dc:date>2025-11-28T11:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: remote_query() is not working</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140602#M51481</link>
      <description>&lt;P&gt;Latest feedback from my end, just in case it could help to troubleshoot or solve the issue:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Coffee77_0-1764331191814.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/21993i324134F1E341BF4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Coffee77_0-1764331191814.png" alt="Coffee77_0-1764331191814.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;remote_query&lt;/STRONG&gt; table value function (TVF) is not reachable from clusters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 12:01:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140602#M51481</guid>
      <dc:creator>Coffee77</dc:creator>
      <dc:date>2025-11-28T12:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: remote_query() is not working</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140627#M51492</link>
      <description>&lt;P&gt;I have the same error if I query SELECT 1 from remote_query(). From documentation:&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;To use the&amp;nbsp;&lt;/SPAN&gt;remote_query&lt;SPAN&gt;&amp;nbsp;function, you first need to create a &lt;STRONG&gt;Unity Catalog connection&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, not sure why it rebels against creators &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Nov 2025 00:26:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140627#M51492</guid>
      <dc:creator>vr</dc:creator>
      <dc:date>2025-11-29T00:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: remote_query() is not working</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140684#M51508</link>
      <description>&lt;P&gt;I was also facing the same issue last week.&lt;BR /&gt;Then I went into previews page from where i can enable/disable preview features in workspace.&lt;BR /&gt;Kindly enable below preview and then this error will disappear (atleast this worked for me)&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Enables remote query table-valued function (remote_query).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 06:48:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140684#M51508</guid>
      <dc:creator>tansgun</dc:creator>
      <dc:date>2025-12-01T06:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: remote_query() is not working</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140686#M51509</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/153794"&gt;@tansgun&lt;/a&gt;&amp;nbsp;, here is &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/42241"&gt;@vr&lt;/a&gt;&amp;nbsp;what we need to enable from &lt;STRONG&gt;Workspace - Previews&lt;/STRONG&gt; to make it work:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Coffee77_0-1764572957682.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/22008i572CE5773BEFD64F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Coffee77_0-1764572957682.png" alt="Coffee77_0-1764572957682.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I had looked for that in Previews at account level and hence, I didn't find it.&lt;/P&gt;&lt;P&gt;After enabling that, it should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 07:26:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140686#M51509</guid>
      <dc:creator>Coffee77</dc:creator>
      <dc:date>2025-12-01T07:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: remote_query() is not working</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140699#M51510</link>
      <description>&lt;P&gt;Checked and it really works:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Coffee77_0-1764575479792.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/22009i638D188A5E00B56D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Coffee77_0-1764575479792.png" alt="Coffee77_0-1764575479792.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I had to edit my cluster to use 17.3 LTS as DBR:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Coffee77_1-1764575535307.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/22010i14811E6D5441861B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Coffee77_1-1764575535307.png" alt="Coffee77_1-1764575535307.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 07:52:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140699#M51510</guid>
      <dc:creator>Coffee77</dc:creator>
      <dc:date>2025-12-01T07:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: remote_query() is not working</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140702#M51511</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/153794"&gt;@tansgun&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for sharing the solution with us &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 08:04:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140702#M51511</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-12-01T08:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: remote_query() is not working</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140805#M51535</link>
      <description>&lt;P&gt;You was right, I did not realize we have the Previews page for such settings. My colleague enabled it and now it works!&lt;/P&gt;&lt;P&gt;Thank you, dear community.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 23:45:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140805#M51535</guid>
      <dc:creator>vr</dc:creator>
      <dc:date>2025-12-01T23:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: remote_query() is not working</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140806#M51536</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/179536"&gt;@Coffee77&lt;/a&gt;&amp;nbsp;are you giving the foreign catalog details in the remote query function? &lt;STRONG&gt;coffee77&lt;/STRONG&gt;.sampleDB&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 01:08:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140806#M51536</guid>
      <dc:creator>GA4</dc:creator>
      <dc:date>2025-12-02T01:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: remote_query() is not working</title>
      <link>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140840#M51544</link>
      <description>&lt;P&gt;My SQL database was called "Coffee77.SampleDB". Maybe not the best name indeed, removing "." from it would have been better! Is due to that you confusion/ question?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 08:30:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/remote-query-is-not-working/m-p/140840#M51544</guid>
      <dc:creator>Coffee77</dc:creator>
      <dc:date>2025-12-02T08:30:17Z</dc:date>
    </item>
  </channel>
</rss>

