<?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: Is it possible to have an alert when a row is added to a table? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/is-it-possible-to-have-an-alert-when-a-row-is-added-to-a-table/m-p/93495#M38719</link>
    <description>&lt;P&gt;You could set your alert with query as:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;-- Custom alert to monitor for new rows added to a table
SELECT COUNT(*) AS new_rows
FROM your_table
WHERE event_time &amp;gt; current_timestamp() - interval '1' hour&lt;/LI-CODE&gt;
&lt;P&gt;In this example, the query checks for rows added to &lt;CODE&gt;your_table&lt;/CODE&gt; within the last hour. If the query returns a non-zero count, the alert will be triggered.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2024 17:58:29 GMT</pubDate>
    <dc:creator>Walter_C</dc:creator>
    <dc:date>2024-10-10T17:58:29Z</dc:date>
    <item>
      <title>Is it possible to have an alert when a row is added to a table?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-it-possible-to-have-an-alert-when-a-row-is-added-to-a-table/m-p/93296#M38669</link>
      <description>&lt;P&gt;I currently have a table that periodically adds rows in (sometimes daily, sometimes over a month). I was hoping to have an alert for when a row is added into this. The table has date fields of when rows are loaded in.&lt;/P&gt;&lt;P&gt;I have an alert working, but it just runs and prints the table every day. I was hoping I could do this so that I would only get an email alert if there is a new row.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 13:41:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-it-possible-to-have-an-alert-when-a-row-is-added-to-a-table/m-p/93296#M38669</guid>
      <dc:creator>DBX123</dc:creator>
      <dc:date>2024-10-09T13:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to have an alert when a row is added to a table?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-it-possible-to-have-an-alert-when-a-row-is-added-to-a-table/m-p/93495#M38719</link>
      <description>&lt;P&gt;You could set your alert with query as:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;-- Custom alert to monitor for new rows added to a table
SELECT COUNT(*) AS new_rows
FROM your_table
WHERE event_time &amp;gt; current_timestamp() - interval '1' hour&lt;/LI-CODE&gt;
&lt;P&gt;In this example, the query checks for rows added to &lt;CODE&gt;your_table&lt;/CODE&gt; within the last hour. If the query returns a non-zero count, the alert will be triggered.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 17:58:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-it-possible-to-have-an-alert-when-a-row-is-added-to-a-table/m-p/93495#M38719</guid>
      <dc:creator>Walter_C</dc:creator>
      <dc:date>2024-10-10T17:58:29Z</dc:date>
    </item>
  </channel>
</rss>

