<?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: [CONFIG_NOT_AVAILABLE] Configuration spark.sql.legacy.timeParserPolicy is not available. SQLSTAT in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/config-not-available-configuration-spark-sql-legacy/m-p/141134#M51628</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sql"&gt;SET legacy_time_parser_policy = legacy;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/parameters/legacy_time_parser_policy" target="_blank"&gt;https://docs.databricks.com/aws/en/sql/language-manual/parameters/legacy_time_parser_policy&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.getdbt.com/docs/core/connect-data-platform/databricks-setup" target="_blank"&gt;https://docs.getdbt.com/docs/core/connect-data-platform/databricks-setup&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;your_profile_name:
  target: dev
  outputs:
    dev:
      type: databricks
      host: YOURORG.databrickshost.com
      http_path: /sql/1.0/warehouses/XXXX
      schema: YOUR_SCHEMA
      token: "{{ env_var('DATABRICKS_TOKEN') }}"
      session_properties:
        legacy_time_parser_policy: legacy&lt;/LI-CODE&gt;
&lt;P&gt;After that remove any other&amp;nbsp;spark.sql.legacy.timeParserPolicy from your code&lt;/P&gt;</description>
    <pubDate>Thu, 04 Dec 2025 10:34:07 GMT</pubDate>
    <dc:creator>Hubert-Dudek</dc:creator>
    <dc:date>2025-12-04T10:34:07Z</dc:date>
    <item>
      <title>[CONFIG_NOT_AVAILABLE] Configuration spark.sql.legacy.timeParserPolicy is not available. SQLSTATE:</title>
      <link>https://community.databricks.com/t5/data-engineering/config-not-available-configuration-spark-sql-legacy/m-p/141115#M51621</link>
      <description>&lt;P&gt;Running a DBT into the development environment, QA and PROD. Same config is working in QA and PROD but in dev facing this issue&amp;nbsp;[CONFIG_NOT_AVAILABLE] Configuration spark.sql.legacy.timeParserPolicy is not available. SQLSTATE: and the compute type is sql warehouse serverless for all environment. How come issue is happening is DEV and not in QA and PROD, please support.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 08:39:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/config-not-available-configuration-spark-sql-legacy/m-p/141115#M51621</guid>
      <dc:creator>Magesh_Kumar</dc:creator>
      <dc:date>2025-12-04T08:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: [CONFIG_NOT_AVAILABLE] Configuration spark.sql.legacy.timeParserPolicy is not available. SQLSTAT</title>
      <link>https://community.databricks.com/t5/data-engineering/config-not-available-configuration-spark-sql-legacy/m-p/141120#M51623</link>
      <description>&lt;P&gt;Hi, I think the most likely thing causing this is that the config of the SQL warehouse on dev is slightly different to the config on your QA and Prod workspaces, this can happen for a few reasons.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI class="qt3gz9a"&gt;Workspace or Compute Version Drift: It's possible that the DEV environment is running on a slightly different version of serverless SQL warehouse infrastructure, or has not received recent updates that made this configuration available. Databricks sometimes rolls out engine upgrades or configuration support gradually across workspaces/environments, which can cause temporary discrepancies.&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;Warehouse-Level Settings: The configuration availability can also be impacted if the DEV serverless warehouse was created before a platform upgrade, and thus does not support certain config keys. QA and PROD may have been created or refreshed after the necessary support was added.&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;Preview/Channel Differences: Databricks SQL Warehouses can be attached to different channels (Current or Preview), and there may be differences in config support between channels. If DEV is running on a Preview version, or vice versa, the config support matrix may differ
&lt;DIV class="_7pq7t614 _7pq7t6cl wrz27r2 wrz27r0"&gt;&lt;A class="xh5urp3 xh5urp1 xh5urp0 _7pq7t66s" tabindex="0" href="https://docs.google.com/document/d/1A_9IlhckMgNbOa7hhvQcSL4nsrtdCxnFp4uGUVZ8VvQ" target="_blank" rel="noopener noreferrer" type="button" aria-label="Citation 2" aria-expanded="false" aria-haspopup="dialog" data-base-ui-click-trigger=""&gt;2&lt;/A&gt;&lt;/DIV&gt;
.&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;Underlying Workspace Policies or Permissions: Sometimes, workspace-level cluster policies or admin settings could restrict which Spark configs are exposed or modifiable, leading to a config being “not available” in one environment but functioning in another.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;To try to troubleshoot try the following steps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI class="qt3gz9a"&gt;Check Warehouse Version &amp;amp; Channel: Compare the "Channel" (Current or Preview) and version of the SQL warehouse in DEV versus QA/PROD.&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;Recreate DEV Warehouse: If the warehouse is older or was created before certain features/configs were rolled out, try restarting or recreating the DEV serverless SQL warehouse. Newer warehouses generally get the latest config support.&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;Review Workspace Settings: Ensure no workspace policies or admin controls are restricting configs in DEV.&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;Compare Settings: Use &lt;CODE class="qt3gz9f"&gt;SHOW PARAMETERS&lt;/CODE&gt; or check the warehouse details in all environments to review which configs are available and supported.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 09:01:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/config-not-available-configuration-spark-sql-legacy/m-p/141120#M51623</guid>
      <dc:creator>emma_s</dc:creator>
      <dc:date>2025-12-04T09:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: [CONFIG_NOT_AVAILABLE] Configuration spark.sql.legacy.timeParserPolicy is not available. SQLSTAT</title>
      <link>https://community.databricks.com/t5/data-engineering/config-not-available-configuration-spark-sql-legacy/m-p/141123#M51624</link>
      <description>&lt;P&gt;I tried to recreate warehouse and also tried both current and preview,still it is same issue.Can we please connect in a teams call and check if it is possible&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 09:43:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/config-not-available-configuration-spark-sql-legacy/m-p/141123#M51624</guid>
      <dc:creator>Magesh_Kumar</dc:creator>
      <dc:date>2025-12-04T09:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: [CONFIG_NOT_AVAILABLE] Configuration spark.sql.legacy.timeParserPolicy is not available. SQLSTAT</title>
      <link>https://community.databricks.com/t5/data-engineering/config-not-available-configuration-spark-sql-legacy/m-p/141134#M51628</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sql"&gt;SET legacy_time_parser_policy = legacy;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/parameters/legacy_time_parser_policy" target="_blank"&gt;https://docs.databricks.com/aws/en/sql/language-manual/parameters/legacy_time_parser_policy&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.getdbt.com/docs/core/connect-data-platform/databricks-setup" target="_blank"&gt;https://docs.getdbt.com/docs/core/connect-data-platform/databricks-setup&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;your_profile_name:
  target: dev
  outputs:
    dev:
      type: databricks
      host: YOURORG.databrickshost.com
      http_path: /sql/1.0/warehouses/XXXX
      schema: YOUR_SCHEMA
      token: "{{ env_var('DATABRICKS_TOKEN') }}"
      session_properties:
        legacy_time_parser_policy: legacy&lt;/LI-CODE&gt;
&lt;P&gt;After that remove any other&amp;nbsp;spark.sql.legacy.timeParserPolicy from your code&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 10:34:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/config-not-available-configuration-spark-sql-legacy/m-p/141134#M51628</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2025-12-04T10:34:07Z</dc:date>
    </item>
  </channel>
</rss>

