google / google/googlesql

Comments are stripped on SqlFormatter.formatSql()

Open
#26 4 comments 3 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.6k
Forks
260
PR merge metrics
No merged PRs in 30d

Description

Comments are stripped on `SqlFormatter.formatSql()`.
Enabling `include_comments` is intended behavior to implement formatter.

Contributor guide

Open the contributing guide

Research direction

Start at the SqlFormatter.formatSql() entry point and trace how the include_comments option is handled. Reproduce the reported behavior, then verify that enabling include_comments preserves comments without changing the formatter's other output.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, sql
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.