<?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: Query data not showing in custom alert notifications and QUERY_RESULT_ROWS in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/query-data-not-showing-in-custom-alert-notifications-and-query/m-p/5894#M2167</link>
    <description>&lt;P&gt;Thanks so much -- was afraid that might be the answer, but good to know I'm not missing something!&lt;/P&gt;</description>
    <pubDate>Fri, 14 Apr 2023 17:44:03 GMT</pubDate>
    <dc:creator>Julie1</dc:creator>
    <dc:date>2023-04-14T17:44:03Z</dc:date>
    <item>
      <title>Query data not showing in custom alert notifications and QUERY_RESULT_ROWS</title>
      <link>https://community.databricks.com/t5/data-engineering/query-data-not-showing-in-custom-alert-notifications-and-query/m-p/5892#M2165</link>
      <description>&lt;P&gt;I've set up a custom alert notification for one of my Databricks SQL queries, and it triggers correctly, but I'm not able to get the actual results of the query to appear in the notification email. I've followed the example/template in the custom alert documentation, but {{QUERY_RESULT_ROWS}} and {{QUERY_RESULT_COLS}} don't seem to deliver any usable data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone assist with the phrasing of this alert notification? Am I using the handlebar formatting incorrectly? I would like the email to show the results of the triggered query, and it sounds from the documentation like it should be possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notification code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;# of results:&amp;lt;br/&amp;gt;
{{QUERY_RESULT_VALUE}}&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;
&amp;nbsp;
Query result rows:&amp;lt;br/&amp;gt;
{{QUERY_RESULT_ROWS}}&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;
&amp;nbsp;
Query result cols:&amp;lt;br/&amp;gt;
{{QUERY_RESULT_COLS}}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Output in email:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"# of results:&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query result rows:&lt;/P&gt;&lt;P&gt;[{'column_7627b0db': 1}]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query result cols:&lt;/P&gt;&lt;P&gt;[{'name': 'column_7627b0db', 'friendly_name': 'column_7627b0db', 'type': 'integer'}]"&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 18:26:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/query-data-not-showing-in-custom-alert-notifications-and-query/m-p/5892#M2165</guid>
      <dc:creator>Julie1</dc:creator>
      <dc:date>2023-04-13T18:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Query data not showing in custom alert notifications and QUERY_RESULT_ROWS</title>
      <link>https://community.databricks.com/t5/data-engineering/query-data-not-showing-in-custom-alert-notifications-and-query/m-p/5893#M2166</link>
      <description>&lt;P&gt;The actual query results are not displayed in the alert unfortunately.  You can pass the alert condition etc, but not the raw results of the underlying query.&lt;/P&gt;&lt;P&gt;I hope this will be added in the future.&lt;/P&gt;&lt;P&gt;A workaround is to add a link to the query, so the receiver of the alert can click the link and execute the query.  Not ideal, but something.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 07:05:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/query-data-not-showing-in-custom-alert-notifications-and-query/m-p/5893#M2166</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2023-04-14T07:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Query data not showing in custom alert notifications and QUERY_RESULT_ROWS</title>
      <link>https://community.databricks.com/t5/data-engineering/query-data-not-showing-in-custom-alert-notifications-and-query/m-p/5894#M2167</link>
      <description>&lt;P&gt;Thanks so much -- was afraid that might be the answer, but good to know I'm not missing something!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 17:44:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/query-data-not-showing-in-custom-alert-notifications-and-query/m-p/5894#M2167</guid>
      <dc:creator>Julie1</dc:creator>
      <dc:date>2023-04-14T17:44:03Z</dc:date>
    </item>
  </channel>
</rss>

