This repository has been archived by the owner on Jul 6, 2022. It is now read-only.
[FORMATTING] Space is inserted before bracket for Map keys with . and - #85
Labels
formatting
Bugs or Issues related to SQL Formatting
Describe the bug
When formatting code with MAP keys that have
.
in them, the formatter adds a space between map name and index.Expected Output
Actual Output
Note: if I cared about measures_map['somekey'] the formatter behaves perfectly as expected. I have not done an exhaustive search, but I see that
_
are treated correctly, but.
and-
are not.Usage
How are you calling / using the script? (Please provide a code snippet, if applicable)
I've tried through using
Format Document
andFormat on Save
What SQL language(s) does this apply to?
I'm writing in Presto/Trino and have tried
sql
,bigquery
,spark
, andhive
and get the same resultsWhat Node version? (If applicable)
v17.9.0
The text was updated successfully, but these errors were encountered: