<?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: Multi-select dashboard parameter now resolves to NULL instead of empty array? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/multi-select-dashboard-parameter-now-resolves-to-null-instead-of/m-p/163616#M55161</link>
    <description>&lt;P&gt;The platform is aligning with standard SQL semantics (IS NULL etc) and you can follow it.&amp;nbsp;To fix the queries returning zero rows on load, you need to &lt;STRONG&gt;explicitly&lt;/STRONG&gt; evaluate for NULL before passing the parameter to any array-specific functions or IN clauses.&lt;/P&gt;&lt;P&gt;You can follow pattern given below instead&lt;/P&gt;&lt;LI-CODE lang="python"&gt;WHERE :my_parameter IS NULL 
   OR column_name IN (:my_parameter)&lt;/LI-CODE&gt;&lt;P&gt;If you are applying this across multiple multi-select filters, ensure you wrap each condition in parentheses, so the OR conditions don't interfere with AND operators.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;WHERE (:category IS NULL OR category_column IN (:category))
  AND (:region IS NULL OR region_column IN (:region))
  AND (:status IS NULL OR status_column IN (:status))&lt;/LI-CODE&gt;&lt;P&gt;For a highly resilient approach, you can safely combine both checks in case the parameter occasionally resolves to an empty array depending on how a user interacts with the widget during a session.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;WHERE :my_parameter IS NULL 
   OR SIZE(:my_parameter) = 0 
   OR column_name IN (:my_parameter)&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 21 Jul 2026 14:07:40 GMT</pubDate>
    <dc:creator>balajij8</dc:creator>
    <dc:date>2026-07-21T14:07:40Z</dc:date>
    <item>
      <title>Multi-select dashboard parameter now resolves to NULL instead of empty array?</title>
      <link>https://community.databricks.com/t5/data-engineering/multi-select-dashboard-parameter-now-resolves-to-null-instead-of/m-p/163607#M55159</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;We're seeing a change in the behavior of multi-select dashboard parameters in Databricks SQL dashboards.&lt;/P&gt;&lt;P&gt;Previously, when no value was selected in a multi-select filter, our query logic worked as expected using:&lt;/P&gt;&lt;P&gt;SIZE(:my_parameter) = 0&lt;/P&gt;&lt;P&gt;However, starting recently, the same dashboards no longer behave as expected on the initial page load. It appears that the parameter is now resolving to NULL instead of an empty array ([]).&lt;/P&gt;&lt;P&gt;This has affected multiple dashboards that were previously working without any changes.&lt;/P&gt;&lt;P&gt;Has anyone else experienced this behavior?&lt;/P&gt;&lt;P&gt;Specifically:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has there been a recent change in how Databricks SQL or Lakeview Dashboards initialize unset multi-select parameters?&lt;/P&gt;&lt;P&gt;Is this expected behavior or a known issue?&lt;/P&gt;&lt;P&gt;What is the recommended way to handle an unselected multi-select parameter now?&lt;/P&gt;&lt;P&gt;We're currently using logic similar to:&lt;/P&gt;&lt;P&gt;WHERE SIZE(:my_parameter) = 0&lt;/P&gt;&lt;P&gt;OR column_name IN (:my_parameter)&lt;/P&gt;&lt;P&gt;Any guidance or recommended workaround would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2026 11:48:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/multi-select-dashboard-parameter-now-resolves-to-null-instead-of/m-p/163607#M55159</guid>
      <dc:creator>DwarkaPandey</dc:creator>
      <dc:date>2026-07-21T11:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-select dashboard parameter now resolves to NULL instead of empty array?</title>
      <link>https://community.databricks.com/t5/data-engineering/multi-select-dashboard-parameter-now-resolves-to-null-instead-of/m-p/163616#M55161</link>
      <description>&lt;P&gt;The platform is aligning with standard SQL semantics (IS NULL etc) and you can follow it.&amp;nbsp;To fix the queries returning zero rows on load, you need to &lt;STRONG&gt;explicitly&lt;/STRONG&gt; evaluate for NULL before passing the parameter to any array-specific functions or IN clauses.&lt;/P&gt;&lt;P&gt;You can follow pattern given below instead&lt;/P&gt;&lt;LI-CODE lang="python"&gt;WHERE :my_parameter IS NULL 
   OR column_name IN (:my_parameter)&lt;/LI-CODE&gt;&lt;P&gt;If you are applying this across multiple multi-select filters, ensure you wrap each condition in parentheses, so the OR conditions don't interfere with AND operators.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;WHERE (:category IS NULL OR category_column IN (:category))
  AND (:region IS NULL OR region_column IN (:region))
  AND (:status IS NULL OR status_column IN (:status))&lt;/LI-CODE&gt;&lt;P&gt;For a highly resilient approach, you can safely combine both checks in case the parameter occasionally resolves to an empty array depending on how a user interacts with the widget during a session.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;WHERE :my_parameter IS NULL 
   OR SIZE(:my_parameter) = 0 
   OR column_name IN (:my_parameter)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 21 Jul 2026 14:07:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/multi-select-dashboard-parameter-now-resolves-to-null-instead-of/m-p/163616#M55161</guid>
      <dc:creator>balajij8</dc:creator>
      <dc:date>2026-07-21T14:07:40Z</dc:date>
    </item>
  </channel>
</rss>

