Skip to content

[FORMATTING] Trino missing CORRESPONDING keyword #934

Closed

Description

@wstevenson-r7

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

Activity

  1. nene commented on Feb 17, 2026

    @nene
    Collaborator

    Thanks for reporing.

  2. nene commented on Feb 17, 2026

    @nene
    Collaborator

    Fixed in 15.7.2

  3. added a commit that references this issue on Feb 17, 2026
    cd6db25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions