Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CREATE VIEW #515

Open
Tracked by #262
jlkravitz opened this issue Oct 26, 2023 · 2 comments
Open
Tracked by #262

CREATE VIEW #515

jlkravitz opened this issue Oct 26, 2023 · 2 comments
Labels
DDL-DML enhancement New feature or request

Comments

@jlkravitz
Copy link

Describe the bug
When I prepend create view MyView as to a query, sqlfmt no longer formats the file.

To Reproduce

CREATE VIEW myview AS SELECT * FROM mytable

Expected behavior

create view myview as select * from mytable

Actual behavior

CREATE VIEW myview AS SELECT * FROM mytable

Additional context
What is the output of sqlfmt --version?

sqlfmt, version 0.19.2
@tconbeer
Copy link
Owner

This is expected behavior right now; see #262

@tconbeer tconbeer added DDL-DML enhancement New feature or request labels Oct 26, 2023
@tconbeer tconbeer changed the title Leaves files unchanged when query includes create statement CREATE VIEW Oct 26, 2023
@jlkravitz
Copy link
Author

Got it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DDL-DML enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants