<?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 get saved query by name using rest API or databricks SDK in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/get-saved-query-by-name-using-rest-api-or-databricks-sdk/m-p/82572#M36687</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Hi All,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want to &lt;STRONG&gt;get the saved query by name&lt;/STRONG&gt; using&lt;STRONG&gt; rest API or databricks SDK&lt;/STRONG&gt;. So It do not find any direct end point or method which can give us the saved query by name.&lt;/P&gt;&lt;P&gt;I have one solution as given below:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;get the list all queries&lt;/LI&gt;&lt;LI&gt;filter the my queries from list of queries&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;But databricks is saying that if you are calling list all queries end point (&lt;A href="https://docs.databricks.com/api/workspace/queries/list" target="_blank" rel="noopener"&gt;List queries &lt;/A&gt;) multiple then it might ban temporarily.&lt;/P&gt;&lt;P&gt;Can you suggest us how can I get the query without using &lt;STRONG&gt;list all queries end point&lt;/STRONG&gt;?&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2024 15:21:26 GMT</pubDate>
    <dc:creator>mahfooziiitian</dc:creator>
    <dc:date>2024-08-09T15:21:26Z</dc:date>
    <item>
      <title>get saved query by name using rest API or databricks SDK</title>
      <link>https://community.databricks.com/t5/data-engineering/get-saved-query-by-name-using-rest-api-or-databricks-sdk/m-p/82572#M36687</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hi All,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want to &lt;STRONG&gt;get the saved query by name&lt;/STRONG&gt; using&lt;STRONG&gt; rest API or databricks SDK&lt;/STRONG&gt;. So It do not find any direct end point or method which can give us the saved query by name.&lt;/P&gt;&lt;P&gt;I have one solution as given below:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;get the list all queries&lt;/LI&gt;&lt;LI&gt;filter the my queries from list of queries&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;But databricks is saying that if you are calling list all queries end point (&lt;A href="https://docs.databricks.com/api/workspace/queries/list" target="_blank" rel="noopener"&gt;List queries &lt;/A&gt;) multiple then it might ban temporarily.&lt;/P&gt;&lt;P&gt;Can you suggest us how can I get the query without using &lt;STRONG&gt;list all queries end point&lt;/STRONG&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 15:21:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-saved-query-by-name-using-rest-api-or-databricks-sdk/m-p/82572#M36687</guid>
      <dc:creator>mahfooziiitian</dc:creator>
      <dc:date>2024-08-09T15:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: get saved query by name using rest API or databricks SDK</title>
      <link>https://community.databricks.com/t5/data-engineering/get-saved-query-by-name-using-rest-api-or-databricks-sdk/m-p/82641#M36704</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/112476"&gt;@mahfooziiitian&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The answer is no, currently you can get saved query only by id. If your are afraid of exceeding concurrent calls, then design a process that as a first step will use list queries endpoint to extract endpoint IDs and names and save that information to a Delta Table. Then you can lookup endpoint names, IDs in that table and use it to download specific query in later steps of the process. That's how you can avoid exceeding API limits&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Sat, 10 Aug 2024 16:53:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-saved-query-by-name-using-rest-api-or-databricks-sdk/m-p/82641#M36704</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-08-10T16:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: get saved query by name using rest API or databricks SDK</title>
      <link>https://community.databricks.com/t5/data-engineering/get-saved-query-by-name-using-rest-api-or-databricks-sdk/m-p/82654#M36707</link>
      <description>&lt;P&gt;I have tried this solution but problem with this solution is that new query details will not be available until we are preloading the data again. I am thinking of using pagination by using attributes &lt;STRONG&gt;page_token,next_page_token,page_size&lt;/STRONG&gt; and loop through it until we find the query. This might not exceed concurrent API Limit. I need to just verify it with databricks team.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Aug 2024 12:18:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-saved-query-by-name-using-rest-api-or-databricks-sdk/m-p/82654#M36707</guid>
      <dc:creator>mahfooziiitian</dc:creator>
      <dc:date>2024-08-11T12:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: get saved query by name using rest API or databricks SDK</title>
      <link>https://community.databricks.com/t5/data-engineering/get-saved-query-by-name-using-rest-api-or-databricks-sdk/m-p/82752#M36735</link>
      <description>&lt;P&gt;Cool that you found workaround that works for you.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 13:59:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/get-saved-query-by-name-using-rest-api-or-databricks-sdk/m-p/82752#M36735</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-08-12T13:59:23Z</dc:date>
    </item>
  </channel>
</rss>

