<?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: CREATE WIDGETS in SQL Notebook attached to SQL Warehouse Doesn't Work. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/create-widgets-in-sql-notebook-attached-to-sql-warehouse-doesn-t/m-p/74610#M34765</link>
    <description>&lt;P&gt;Sorry I said "closed" but I meant "cleared". When the Notebooks state is cleared (for example, after pulling in Git) the widget in the UI will disappear. The parameter still works if you pass it through a job. But for development I need the widget in the UI.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;SPAN&gt;SQL warehouses don’t support &lt;/SPAN&gt;CREATE WIDGET&lt;SPAN&gt; statements.&amp;nbsp;&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes this was the conclusion I reached, but is it documented anywhere? And shouldn't it be documented where I linked to? Nothing there says anything about limitations of the compute type the notebook is attached to.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2024 12:53:06 GMT</pubDate>
    <dc:creator>JeremyH</dc:creator>
    <dc:date>2024-06-17T12:53:06Z</dc:date>
    <item>
      <title>CREATE WIDGETS in SQL Notebook attached to SQL Warehouse Doesn't Work.</title>
      <link>https://community.databricks.com/t5/data-engineering/create-widgets-in-sql-notebook-attached-to-sql-warehouse-doesn-t/m-p/74053#M34709</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;There is documentation suggesting we can create widgets in code in SQL:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/notebooks/widgets#sql-1" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/azure/databricks/notebooks/widgets#sql-1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But pasting that exact code into a SQL cell in a SQL Notebook attached to a SQL Warehouse yields only this error message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="" href="https://docs.microsoft.com/azure/databricks/error-messages/error-classes#parse_syntax_error" target="_blank" rel="noopener noreferrer"&gt;PARSE_SYNTAX_ERROR&lt;/A&gt;&lt;SPAN&gt;] Syntax error at or near 'WIDGET'. SQLSTATE: 42601 (line 1, pos 7) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 18:24:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-widgets-in-sql-notebook-attached-to-sql-warehouse-doesn-t/m-p/74053#M34709</guid>
      <dc:creator>JeremyH</dc:creator>
      <dc:date>2024-06-14T18:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE WIDGETS in SQL Notebook attached to SQL Warehouse Doesn't Work.</title>
      <link>https://community.databricks.com/t5/data-engineering/create-widgets-in-sql-notebook-attached-to-sql-warehouse-doesn-t/m-p/74065#M34710</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/104561"&gt;@JeremyH&lt;/a&gt;&amp;nbsp;- can you please try adding like the below in your query and see if widgets are getting populated?&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;{{parameter_name }} &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Jun 2024 19:30:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-widgets-in-sql-notebook-attached-to-sql-warehouse-doesn-t/m-p/74065#M34710</guid>
      <dc:creator>shan_chandra</dc:creator>
      <dc:date>2024-06-14T19:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE WIDGETS in SQL Notebook attached to SQL Warehouse Doesn't Work.</title>
      <link>https://community.databricks.com/t5/data-engineering/create-widgets-in-sql-notebook-attached-to-sql-warehouse-doesn-t/m-p/74077#M34716</link>
      <description>&lt;P&gt;I'm able to reference the widgets I create manually just fine, yes, I can use them as parameters in my queries. My issue is I don't want to recreate the widget every time the notebook is closed. In Python notebooks I create them in code so they are always there, and the docs seem to say this possible for SQL. But the CREATE WIDGET clause isn't recognized.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 20:12:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-widgets-in-sql-notebook-attached-to-sql-warehouse-doesn-t/m-p/74077#M34716</guid>
      <dc:creator>JeremyH</dc:creator>
      <dc:date>2024-06-14T20:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE WIDGETS in SQL Notebook attached to SQL Warehouse Doesn't Work.</title>
      <link>https://community.databricks.com/t5/data-engineering/create-widgets-in-sql-notebook-attached-to-sql-warehouse-doesn-t/m-p/74082#M34718</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/104561"&gt;@JeremyH&lt;/a&gt;&amp;nbsp;- Say for example, I ran this query and saved it with a valid name and closed/reopened. the parameter is still present.&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;select * from information_schema.catalogs
where catalog_name = {{catalog_name}}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;SQL warehouses don’t support &lt;/SPAN&gt;&lt;CODE class="code css-1o5d2cw" data-renderer-mark="true"&gt;CREATE WIDGET&lt;/CODE&gt;&lt;SPAN&gt; statements.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Jun 2024 20:36:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-widgets-in-sql-notebook-attached-to-sql-warehouse-doesn-t/m-p/74082#M34718</guid>
      <dc:creator>shan_chandra</dc:creator>
      <dc:date>2024-06-14T20:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE WIDGETS in SQL Notebook attached to SQL Warehouse Doesn't Work.</title>
      <link>https://community.databricks.com/t5/data-engineering/create-widgets-in-sql-notebook-attached-to-sql-warehouse-doesn-t/m-p/74610#M34765</link>
      <description>&lt;P&gt;Sorry I said "closed" but I meant "cleared". When the Notebooks state is cleared (for example, after pulling in Git) the widget in the UI will disappear. The parameter still works if you pass it through a job. But for development I need the widget in the UI.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;SPAN&gt;SQL warehouses don’t support &lt;/SPAN&gt;CREATE WIDGET&lt;SPAN&gt; statements.&amp;nbsp;&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes this was the conclusion I reached, but is it documented anywhere? And shouldn't it be documented where I linked to? Nothing there says anything about limitations of the compute type the notebook is attached to.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 12:53:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-widgets-in-sql-notebook-attached-to-sql-warehouse-doesn-t/m-p/74610#M34765</guid>
      <dc:creator>JeremyH</dc:creator>
      <dc:date>2024-06-17T12:53:06Z</dc:date>
    </item>
  </channel>
</rss>

