v.22.9Improvement

Limit Duplicate Printing of SETTINGS During Query Formatting

Don't print SETTINGS more than once during query formatting if it didn't appear multiple times in the original query. #38900 (Raúl Marín).
Avoid printing the SETTINGS clause multiple times during query formatting if it only appears once in the original query.

Why it matters

This feature improves query formatting clarity by preventing redundant repetition of the SETTINGS clause. It helps users read and understand formatted queries more easily by reflecting the original query structure more accurately.

How to use it

This change is applied automatically during query formatting and requires no additional configuration or commands from the user.