v.20.7Improvement

Fix SETTINGS Parse After FORMAT

Fix SETTINGS parse after FORMAT. #12480 (Azat Khuzhin).
Fix parsing of SETTINGS clause when it appears after the FORMAT clause in a query.

Why it matters

This fix addresses an issue where the SETTINGS clause was not correctly parsed if placed after the FORMAT clause, allowing users to specify settings after the output format without errors.

How to use it

Users can now place the SETTINGS clause after the FORMAT clause in their queries as intended, for example:

SELECT * FROM table FORMAT JSON SETTINGS max_threads=4