Skip to content

Track span of DISTINCT #2099

@xitep

Description

@xitep

Adding span information to the AST node of a DISTINCT will require changing its structure. As per #1548 I'm opening a ticket for this.

Motivation

As described in #1995, or in oracle's docs optimiser hints can be placed right after the SELECT (and before a possible DISTINCT.) (Today, parsing the comment out of the original SQL source can be done manually by consuming the characters right after the SELECT since its AST node has already a select_token telling the keywords ends. Ideally we'd also have the next token's start.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions