<?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 How to allocate costs per SQL query? in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/how-to-allocate-costs-per-sql-query/m-p/55445#M701</link>
    <description>&lt;P&gt;By using System Tables (systen.billing.usage) I'm able to identity DBU usage per query, but I'm not able to identify who ran each query because is not part of the table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm also aware of query history where all the queries and who ran them is listed.&lt;/P&gt;&lt;P&gt;I was thinking if it might possible to combine both to get DBU usage per user, of if you know any other way to achieve same result.&lt;/P&gt;&lt;P&gt;I'll greatly appreciate it.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Dec 2023 15:55:11 GMT</pubDate>
    <dc:creator>riturralde-p</dc:creator>
    <dc:date>2023-12-18T15:55:11Z</dc:date>
    <item>
      <title>How to allocate costs per SQL query?</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-allocate-costs-per-sql-query/m-p/55445#M701</link>
      <description>&lt;P&gt;By using System Tables (systen.billing.usage) I'm able to identity DBU usage per query, but I'm not able to identify who ran each query because is not part of the table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm also aware of query history where all the queries and who ran them is listed.&lt;/P&gt;&lt;P&gt;I was thinking if it might possible to combine both to get DBU usage per user, of if you know any other way to achieve same result.&lt;/P&gt;&lt;P&gt;I'll greatly appreciate it.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 15:55:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-allocate-costs-per-sql-query/m-p/55445#M701</guid>
      <dc:creator>riturralde-p</dc:creator>
      <dc:date>2023-12-18T15:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to allocate costs per SQL query?</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-allocate-costs-per-sql-query/m-p/55601#M704</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;for the reply, however query_id is not part of the system.billing.usage table, so no way to join them by IDs. What my Databricks account team suggested me is to join them by timestamps since both tables contain a column like that.&lt;/P&gt;&lt;P&gt;Also, I had to request the enablement of the Query History system table as it is still in private preview as of now.&lt;/P&gt;&lt;P&gt;BTW - I'm user of Azure Databricks, and if you look at AWS or GCP ones that might be the reason why you see different columns in system tables. could be the reason?.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 13:49:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-allocate-costs-per-sql-query/m-p/55601#M704</guid>
      <dc:creator>riturralde-p</dc:creator>
      <dc:date>2023-12-21T13:49:36Z</dc:date>
    </item>
  </channel>
</rss>

