Skip to content

Conversation

@xitep
Copy link
Contributor

@xitep xitep commented Jan 14, 2026

this should resolve #1995

@iffyio
Copy link
Contributor

iffyio commented Jan 22, 2026

@xitep wondering would it not make more sense to support features like these via the new parse_sql_with_comments API?

@xitep
Copy link
Contributor Author

xitep commented Jan 22, 2026

surely it would be one way. (the only premise for that would to be have the next non-comment token after the corresponding keywords covered with a span, like suggested in #2099.) however, when processing such statements, these hints are something you generally don't want to leave out, even when parsing without comments. hence this proposal to embed it directly into the AST.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Associate multi-line comments with their query blocks for implementing Optimizer Hints

2 participants