Hi,
This is a known limitation today. The official documentation for the SQL alert task confirms it under the Limitations section:
"SQL alert tasks do not support parameters. If you need to use parameterised queries, consider using a SQL task instead."
So the behaviour you are seeing is expected, not a misconfiguration on your side. The alert_task schema in DABs only supports alert_id, subscribers, warehouse_id, and workspace_path. There is no parameters field available yet.
The docs suggest using a sql_task as a workaround, but that is not really equivalent. A sql_task runs a query but does not evaluate alert conditions or send subscriber notifications with custom templates (custom_summary, custom_description, {{QUERY_RESULT_VALUE}}). So it would not give you the same behaviour as your alert.
Realistic options for now:
- Create separate alerts per task name rather than one generic parameterised alert. Not ideal if you have many task names, but it works today with DABs.
- Use the UI to create the job with alert task parameter overrides (as you have already found this works), and manage that specific job outside of DABs for now.
- Submit product feedback directly from your workspace. Click your username icon in the top navigation bar, then click "Send feedback". Describing this gap between the UI and DABs for alert task parameters will help the product team prioritise it. There is a good chance this is already being built but all feedback helps!
Hope that helps!
resources:
jobs:
test_alert:
name: test notif
tasks:
- task_key: alert_gen_ko
sql_task:
warehouse_id: ${var.warehouse_id}
query:
query_id: <your_query_id>
parameters:
task: OVERRIDE TASK NAME
queue:
enabled: true
You would need to handle the notification/alerting logic separately (e.g. via job-level notifications or a downstream condition task).