Skip to content

sqlfmt formats DuckDB Pragma strange #656

@aersam

Description

@aersam

Describe the bug
PRAGMA introduce extra line breaks. For sample SQL see below or docs here: https://duckdb.org/docs/dev/profiling.html

To Reproduce

PRAGMA enable_profiling = 'json';
PRAGMA profiling_output = '/path/to/file.json';

gets

pragma enable_profiling
= 'json'
;
pragma profiling_output
= 'profiles/arts.json'
;

Expected behavior
Something like this would be nice:

pragma enable_profiling = 'json';
pragma profiling_output = '/path/to/file.json';

Actual behavior
Provide any output generated by sqlfmt here. If this is a formatting issue, include the code generated by sqlfmt.

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

What is the output of pip list (or pipx list if you installed using pipx)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions