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.
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.
Notification code:
# of results:<br/>
{{QUERY_RESULT_VALUE}}<br/><br/>
Query result rows:<br/>
{{QUERY_RESULT_ROWS}}<br/><br/>
Query result cols:<br/>
{{QUERY_RESULT_COLS}}
Output in email:
"# of results:
1
Query result rows:
[{'column_7627b0db': 1}]
Query result cols:
[{'name': 'column_7627b0db', 'friendly_name': 'column_7627b0db', 'type': 'integer'}]"