<?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: How to obtain a query profile programatically? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-obtain-a-query-profile-programatically/m-p/70176#M34029</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/62744"&gt;@guizsantos&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The DBSQL query profile is generated from the spark plans and execution logs, spark plans can be gathered through the&amp;nbsp;&lt;A href="https://docs.databricks.com/en/sql/language-manual/sql-ref-syntax-qry-explain.html" target="_self"&gt;EXPLAIN&lt;/A&gt;&amp;nbsp;SQL command. However, it's important to note that the full query profile as seen in the UI is not currently retrievable through the Databricks REST API.&lt;/P&gt;
&lt;P&gt;If you're interested in having this feature available in Databricks, I encourage you to share your idea in the Databricks&amp;nbsp;&lt;A class="" href="https://ideas.databricks.com/" target="_blank" rel="noopener"&gt;Ideas Portal&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2024 23:48:50 GMT</pubDate>
    <dc:creator>raphaelblg</dc:creator>
    <dc:date>2024-05-21T23:48:50Z</dc:date>
    <item>
      <title>How to obtain a query profile programatically?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-obtain-a-query-profile-programatically/m-p/70155#M34019</link>
      <description>&lt;P&gt;Hi everyone! Does anyone know if there is a way to obtain the data used to create the graph showed in the "Query profile" section? Particularly, I am interested in the rows produced by the intermediary query operations. I can see there is "Download" button which effectively downloads a descriptive JSON file of the graph data, which is exactly what I want to obtain.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, performing this step manually is simply not possible. I've searched through the Databricks REST API docs but it seems the query profile is not provided in any endpoint.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 17:32:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-obtain-a-query-profile-programatically/m-p/70155#M34019</guid>
      <dc:creator>guizsantos</dc:creator>
      <dc:date>2024-05-21T17:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain a query profile programatically?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-obtain-a-query-profile-programatically/m-p/70176#M34029</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/62744"&gt;@guizsantos&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The DBSQL query profile is generated from the spark plans and execution logs, spark plans can be gathered through the&amp;nbsp;&lt;A href="https://docs.databricks.com/en/sql/language-manual/sql-ref-syntax-qry-explain.html" target="_self"&gt;EXPLAIN&lt;/A&gt;&amp;nbsp;SQL command. However, it's important to note that the full query profile as seen in the UI is not currently retrievable through the Databricks REST API.&lt;/P&gt;
&lt;P&gt;If you're interested in having this feature available in Databricks, I encourage you to share your idea in the Databricks&amp;nbsp;&lt;A class="" href="https://ideas.databricks.com/" target="_blank" rel="noopener"&gt;Ideas Portal&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 23:48:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-obtain-a-query-profile-programatically/m-p/70176#M34029</guid>
      <dc:creator>raphaelblg</dc:creator>
      <dc:date>2024-05-21T23:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain a query profile programatically?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-obtain-a-query-profile-programatically/m-p/70269#M34042</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/97998"&gt;@raphaelblg&lt;/a&gt;&amp;nbsp;, thanks for you input!&lt;/P&gt;&lt;P&gt;I understand that some info may be obtained by the `EXPLAIN` command, however, the output is not very clear on its meaning and definetely does not provide what is most interesting to us, which is the rows processed/generated by the query intermediate operations. I tried going through the Spark execution logs as well but they are very scattered and I was not able to find a way to gather those programatically as well.&lt;/P&gt;&lt;P&gt;So, I will submit the request in the ideas portal, thanks for the reference.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 13:15:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-obtain-a-query-profile-programatically/m-p/70269#M34042</guid>
      <dc:creator>guizsantos</dc:creator>
      <dc:date>2024-05-22T13:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain a query profile programatically?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-obtain-a-query-profile-programatically/m-p/122837#M46882</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/62744"&gt;@guizsantos&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/api/workspace/queryhistory/list" target="_self"&gt;Query history list api&lt;/A&gt; provides metrics, see&amp;nbsp;&lt;SPAN&gt;include_metrics&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;an executed query definition may be seen using &lt;A href="https://docs.databricks.com/aws/en/admin/system-tables/query-history&amp;nbsp;" target="_self"&gt;query history system table&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 14:30:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-obtain-a-query-profile-programatically/m-p/122837#M46882</guid>
      <dc:creator>artsheiko</dc:creator>
      <dc:date>2025-06-25T14:30:23Z</dc:date>
    </item>
  </channel>
</rss>

