[FORMATTING] Trino missing CORRESPONDING keyword
Input data
Which SQL and options did you provide as input?
SELECT * FROM foo UNION ALL CORRESPONDING SELECT * FROM bar;
Expected Output
SELECT * FROM foo UNION ALL CORRESPONDING SELECT * FROM bar;
Actual Output
SELECT * FROM foo UNION ALL CORRESPONDING SELECT * FROM bar;
Usage
- How are you calling / using the library?
const formattedSql = format(s, { language: 'trino', keywordCase: 'upper', functionCase: 'upper', dataTypeCase: 'upper', tabWidth: 2, });
- What SQL language(s) does this apply to?
trino - Which SQL Formatter version are you using? (The exact version number.)
15.7.0
I see there is an updated grammar file in trino master
https://github.com/trinodb/trino/blob/master/core/trino-grammar/src/main/antlr4/io/trino/grammar/sql/SqlBase.g4#L1062-L1364