sqlformat-rs icon indicating copy to clipboard operation
sqlformat-rs copied to clipboard

`EXCEPT` not handled well

Open max-sixty opened this issue 5 months ago • 0 comments

A small issue from https://github.com/PRQL/prql/issues/4299

SELECT
  table_0.* EXCEPT (profit),
  details.* EXCEPT (item_id),
  table_0.profit
FROM
  table_0

is formatted as

SELECT
  table_0.*
EXCEPT
  (profit),
  details.*
EXCEPT
  (item_id),
  table_0.profit
FROM
  table_0

Would it be reasonable to special-case EXCEPT to be inline?

max-sixty avatar Mar 05 '24 00:03 max-sixty