Comments (1)
I can't imagine any viable solutions to this problem if we're going to format without compiling. The dbt_utils.group_by
macro has always been a bit gross for this specific reason, and the range
alternative you proposed is infinitely better in my eyes.
If a solution needs to be implemented, then it should probably be a configuration where users can define a list of macros that should always be on a new line (rather than just hard-coding for dbt_utils.group_by
--though it could be the default).
from sqlfmt.
Related Issues (20)
- Improve verbose logging
- Support Tornado Templates
- Failed formatting with CTE and CASE statement HOT 2
- Flag -k/--reset-cache does not work in a pre-commit hook HOT 1
- Single vs Double Quotes Issue Diff HOT 9
- Jinja blocks should be indented
- "Range" in frame clauses HOT 1
- Casting to decimal with precision/scale wraps to next line
- File counts unstable for dbt projects with --exclude
- `union distinct` shouldn't have `distinct` on a different line
- INSERT INTO HOT 2
- sqlfmt removes Comments when there are multiple C-style comments on one line HOT 2
- BigQuery STRUCT function HOT 2
- ValueError: max() arg is an empty sequence
- Exclude config in pyproject.toml stopped working in 0.18.3 HOT 9
- `<=>` operator not getting formatted correctly HOT 3
- Make comment safety check less sensitive to whitespace changes
- Command-line exclude option does not work on Windows HOT 1
- Multiple select statements occur in the same line. HOT 2
- adding `-- fmt: off` at top of file causes error HOT 5
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.