You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feel free to close this if you consider this a duplicate of #461.
thiemonipro
changed the title
Formatting error when using the postgres **?&** json operator
Formatting error when using the postgres '?&' json operator
Apr 11, 2025
thiemonipro
changed the title
Formatting error when using the postgres '?&' json operator
Formatting error when using the postgres ?& json operator
Apr 11, 2025
Describe the bug
To Reproduce
Format the following example:
Expected behavior
I expect that the operator stays intact and is not split up by a space. I don't expect any formatting changes.
Actual behavior
A space is added between the parts of the operator.
Formatted code
Additional context
What is the output of
sqlfmt --version
?Tested on 0.21.2 and 0.26.0 using python 3.9.6
Package Version
appdirs 1.4.4
black 24.1.1
chardet 5.2.0
click 8.1.7
colorama 0.4.6
diff_cover 8.0.3
exceptiongroup 1.2.0
Faker 24.4.0
iniconfig 2.0.0
Jinja2 3.1.3
MarkupSafe 2.1.4
mypy-extensions 1.0.0
numpy 1.26.4
packaging 23.2
pandas 2.2.1
pathspec 0.12.1
pip 23.2.1
platformdirs 4.2.0
pluggy 1.4.0
Pygments 2.17.2
pytest 8.0.0
python-dateutil 2.9.0.post0
pytz 2024.1
PyYAML 6.0.1
regex 2023.12.25
setuptools 68.2.0
shandy-sqlfmt 0.26.0
six 1.16.0
sqlfluff 2.3.5
tblib 3.0.0
toml 0.10.2
tomli 2.0.1
tqdm 4.66.1
typing_extensions 4.9.0
tzdata 2024.1
wheel 0.41.2
yamllint 1.37.0
[notice] A new release of pip is available: 23.2.1 -> 25.0.1
The text was updated successfully, but these errors were encountered: