โ12-15-2021 10:59 PM
Please include in documentation an example how to incorporate the `QUERY_RESULT_ROWS` variable in the custom template.
โ01-05-2022 05:01 PM
Hi @Merca Ovnerudโ ,
Here is the docs link https://docs.databricks.com/sql/user/alerts/index.html please let me know if this helps or you still have more follow questions.
โ01-09-2022 11:58 PM
Hi Jose,
I believe @Merca Ovnerudโ asked for the docs to include an example, but I cannot see that this has been added in the link you provided.
โ01-28-2022 12:01 AM
@Jose Gonzalezโ Just sending me to documentations when I clearly state in my question that they are missing examples from the said documentation is borderline rude. And not responding even when someone tries to point this out, is even more.
Anyhow - could someone please tell me if there is possible (and how) to include data from the {{QUERY_RESULT_ROWS}} in the alert email?
โ01-28-2022 02:59 AM
Hi @Kaniz Fatmaโ ,
Thank you for the link. That was exactly what I was looking for. I hope this will be included in databricks documentation for others who may have the same problem!
Best
-Merca-
PS: Ask all the questions you like ๐
โ01-28-2022 04:47 AM
Done!
โ09-12-2022 12:21 PM
I was wondering about this same question, however, the link is no longer accessible. Could the example be included int he official databricks documentation?
โ09-12-2022 06:31 PM
@Aleksandar Mirkovicโ I second that an example should be provided in documentation! (hint, hint @Kaniz Fatmaโ โ ๐ )
Here is an example how to add the QUERY_RESULT_ROWS in email: (query result is table with 2 columns: column1,column2)
<table>
<tr><th>column1 header</th><th>column2 header</th></tr>
{{#QUERY_RESULT_ROWS}}
<tr>
<td>{{column1}}</td> <td>{{column2}}</td>
</tr>
{{/QUERY_RESULT_ROWS}}
</table>
note of caution: if a receiver have turned off html rendering in email, this does not look good!!! The tags will be written out as plain text
โ10-10-2024 10:48 AM
@merca I have been using this same solution in alerts and it has been working great until yesterday, 10/9/2024. Now the results are showing up blank in my alert notification. Are you experiencing the same?
a month ago - last edited a month ago
Hi @CJK053000, I'm experiencing the same behavior. Have you figured out the workaround?
a month ago
I am having the same issue as well from today. Any idea what is wrong and how to fix it ?
a month ago
I have a support ticket open and am awaiting feedback. I will report back once I have more info.
3 weeks ago
Databricks confirmed this was an issue on their end and it should be resolved now. It is working for me.
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโt want to miss the chance to attend and share knowledge.
If there isnโt a group near you, start one and help create a community that brings people together.
Request a New Group