<?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 Looking for CLI-based SQL formatter for Databricks: Alternative to gethue/sql-formatter for . in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/looking-for-cli-based-sql-formatter-for-databricks-alternative/m-p/136061#M50476</link>
    <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I'm looking for a SQL formatter (CLI) for two different contexts within Databricks.&lt;/P&gt;&lt;P&gt;1. SQL queries in .sql files - What tool does Databricks use by default to format SQL?&lt;/P&gt;&lt;P&gt;2. %sql magic cells in notebooks (.ipynb files) - What tool does Databricks use by default to format SQL in %sql cells?&lt;/P&gt;&lt;P&gt;Databricks currently appears to use gethue/sql-formatter for both contexts, but I have some concerns with this tool:&lt;BR /&gt;- The project hasn't been updated in four years.&lt;BR /&gt;- It doesn't properly support %sql cells in .ipynb notebooks. I'm sure there are custom customizations, especially for #2.&lt;BR /&gt;- I don't want to rely on an unmaintained tool.&lt;/P&gt;&lt;P&gt;What I'm looking for:&lt;/P&gt;&lt;P&gt;I'm looking for an alternative tool that meets the following criteria:&lt;BR /&gt;- Officially provided by Databricks or Databricks Labs&lt;BR /&gt;- Supports both .sql files and %sql cells in .ipynb&lt;BR /&gt;- Available as a CLI command or installable package (e.g., for CI/CD pipelines)&lt;/P&gt;&lt;P&gt;Does Databricks or Databricks Labs provide such a tool? If not, are there any officially recommended commands or packages that meet these requirements?&lt;/P&gt;&lt;P&gt;I'd appreciate any guidance.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 26 Oct 2025 09:30:55 GMT</pubDate>
    <dc:creator>Lenoq</dc:creator>
    <dc:date>2025-10-26T09:30:55Z</dc:date>
    <item>
      <title>Looking for CLI-based SQL formatter for Databricks: Alternative to gethue/sql-formatter for .</title>
      <link>https://community.databricks.com/t5/data-engineering/looking-for-cli-based-sql-formatter-for-databricks-alternative/m-p/136061#M50476</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I'm looking for a SQL formatter (CLI) for two different contexts within Databricks.&lt;/P&gt;&lt;P&gt;1. SQL queries in .sql files - What tool does Databricks use by default to format SQL?&lt;/P&gt;&lt;P&gt;2. %sql magic cells in notebooks (.ipynb files) - What tool does Databricks use by default to format SQL in %sql cells?&lt;/P&gt;&lt;P&gt;Databricks currently appears to use gethue/sql-formatter for both contexts, but I have some concerns with this tool:&lt;BR /&gt;- The project hasn't been updated in four years.&lt;BR /&gt;- It doesn't properly support %sql cells in .ipynb notebooks. I'm sure there are custom customizations, especially for #2.&lt;BR /&gt;- I don't want to rely on an unmaintained tool.&lt;/P&gt;&lt;P&gt;What I'm looking for:&lt;/P&gt;&lt;P&gt;I'm looking for an alternative tool that meets the following criteria:&lt;BR /&gt;- Officially provided by Databricks or Databricks Labs&lt;BR /&gt;- Supports both .sql files and %sql cells in .ipynb&lt;BR /&gt;- Available as a CLI command or installable package (e.g., for CI/CD pipelines)&lt;/P&gt;&lt;P&gt;Does Databricks or Databricks Labs provide such a tool? If not, are there any officially recommended commands or packages that meet these requirements?&lt;/P&gt;&lt;P&gt;I'd appreciate any guidance.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 26 Oct 2025 09:30:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/looking-for-cli-based-sql-formatter-for-databricks-alternative/m-p/136061#M50476</guid>
      <dc:creator>Lenoq</dc:creator>
      <dc:date>2025-10-26T09:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for CLI-based SQL formatter for Databricks: Alternative to gethue/sql-formatter for .</title>
      <link>https://community.databricks.com/t5/data-engineering/looking-for-cli-based-sql-formatter-for-databricks-alternative/m-p/136083#M50481</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/194425"&gt;@Lenoq&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;As far as I know, currently there is no tool that meets your given criteria by databricks/labs. The closest that I can see is the tool you gave as an example, but as you said its not that good. what I would do maybe is an intermedial option with&amp;nbsp;sqlfluff that would format the sql queries,&amp;nbsp;however, it would need some extra handling to strip or ignore %sql magic lines when used on notebook content.&lt;BR /&gt;&lt;BR /&gt;Best, Ilir&lt;/P&gt;</description>
      <pubDate>Sun, 26 Oct 2025 15:01:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/looking-for-cli-based-sql-formatter-for-databricks-alternative/m-p/136083#M50481</guid>
      <dc:creator>ilir_nuredini</dc:creator>
      <dc:date>2025-10-26T15:01:34Z</dc:date>
    </item>
  </channel>
</rss>

