google / google/googlesql

Formatting issue with table names

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

Description

Hi,

I use ZetaSQL for syntax checking, formatting checking and file formatting.
While using the tool I ran into an issue that if I use table names like this:
```
table-name-example
```
this will be the result of the formatting:
```
table - name - example
```

My formatter configuration file looks like this:
```
allowInvalidTokens: false
capitalizeKeywords: false
enforceSingleQuotes: false
indentationSpaces: 4
expandFormatRanges: false
lineLengthLimit: 100
preserveLineBreaks: false
```

I read the documentation about the [Lexical structure and syntax](https://github.com/google/zetasql/blob/master/docs/lexical.md) and it says that I can use unquoted identifiers with single dashes. Therefore I do not understand the reason for the issue.
Is there a solution to the issue, or a configuration that can be set to avoid this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.