I'm able to create and use widgets using the UI in my SQL notebooks, but they get lost quite frequently when the notebook is reset.
There is documentation suggesting we can create widgets in code in SQL: https://learn.microsoft.com/en-us/azure/databricks/notebooks/widgets#sql-1
But pasting that exact code into a SQL cell in a SQL Notebook attached to a SQL Warehouse yields only this error message:
[PARSE_SYNTAX_ERROR] Syntax error at or near 'WIDGET'. SQLSTATE: 42601 (line 1, pos 7)
Isn't that documentation simply wrong? I don't see any qualifying statements that suggest I should not be able to do this, yet clearly I can't.