-
Notifications
You must be signed in to change notification settings - Fork 433
Description
Describe the Feature
Support formatting pipe syntax for Dabaricks and BigQuery.
In this syntax, SQL queries are expressed in a functional style using the pipe operator (|>), allowing operations like SELECT
, WHERE
, and GROUP BY
to be chained together in a readable and modular way. Pipe syntax improves the clarity and structure of SQL by allowing queries to be written as a sequence of transformations, where each step builds on the previous one. This functional style enhances readability, especially for complex queries, by breaking them into logically organized components. It also promotes modular and maintainable code, making it easier to reason about and modify individual parts of a query. As a result, pipe syntax is becoming increasingly popular in modern data workflows and tools that emphasize composability and developer ergonomics.
Why do you want this feature?
Pipe syntax is increasingly being adopted for its readability and composability, especially in data platforms like BigQuery and Databricks. However, most SQL formatters, including this one, do not currently support it. Adding support for pipe syntax would help teams using modern SQL styles to maintain clean, readable, and consistently formatted code without needing to fall back to manual formatting or workarounds. This would be especially valuable in environments that prioritize functional or declarative query composition.