Comments (2)
Thanks for the report, I can reproduce. I guess the saga with unstable jinja indentation continues. (Related to #138 #176 etc)
from sqlfmt.
@tconbeer , thanks.
I also tried 2 more hacks, which do not work:
- wrap with
(..)
"a": """(
column_a1,
column_a2,
column_a3,
)""",
- use
tuple
strings
"a": (
"column_a1,\n"
"column_a2,\n"
"column_a3,\n"
),
from sqlfmt.
Related Issues (20)
- Support formatting stdin? HOT 2
- Support pg-promise Query Files with Named Parameters HOT 2
- Case-sentitive identifiers within object navigation expressions are lowercased HOT 2
- Request: Support leading commas HOT 1
- sqlfmt incorrect reformatted JSON access path, breaking all accesses. HOT 1
- Don't merge lines if they contain a trailing comma HOT 3
- parsing error for postgress set HOT 3
- sqlfmt adds an extra space to PostgreSQL double tilda operators (`LIKE` alias) HOT 3
- Support Python format/f-string as templater
- PostgreSQL formatting of extensions is broken HOT 2
- Request: Implement in compiled language HOT 1
- Support for formatting SQL code blocks in Markdown HOT 2
- Table name containing the restricted keyword "case" triggers an error HOT 4
- exists inside select when select items are on separate lines HOT 1
- Don't break union all by name into two lines HOT 2
- Preserve the space between `interval` and a following parenthesis
- Use `ruff format` for jinjafmt if `black` is not available HOT 1
- Modernize dev tooling and CI
- sqlfmt breaks up depends_on statements across multiple lines, causing an error in parsing HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlfmt.