sqlparse icon indicating copy to clipboard operation
sqlparse copied to clipboard

Add support for MATERIALIZED keyword formatting

Open matthiasmast opened this issue 1 year ago • 0 comments

A query without MATERIALIZED is formatted e.g. like this

WITH test_data AS
    (SELECT data1,
            data2,
            data3
     FROM test_table)
SELECT *
FROM test_data

after adding the MATERIALIZED keyword it is formatted like this

WITH test_data AS MATERIALIZED
    (SELECT data1, data2, data3
     FROM test_table)
SELECT *
FROM test_data

but it should be formatted like this

WITH test_data AS MATERIALIZED 
    (SELECT data1,
            data2,
            data3
     FROM test_table)
SELECT *
FROM test_data

matthiasmast avatar Mar 10 '23 16:03 matthiasmast