Skip to content

Commit

Permalink
Bump sqlformat from 0.2.3 to 0.3.3 (#159)
Browse files Browse the repository at this point in the history
Bumps [sqlformat](https://github.com/shssoichiro/sqlformat-rs) from
0.2.3 to 0.3.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/shssoichiro/sqlformat-rs/releases">sqlformat's
releases</a>.</em></p>
<blockquote>
<h2>Version 0.3.3</h2>
<ul>
<li>Reduce binary size by removing regex dependency (<a
href="https://redirect.github.com/shssoichiro/sqlformat-rs/issues/68">#68</a>)</li>
</ul>
<h2>Version 0.3.0</h2>
<ul>
<li>[breaking] fix: Ignore keywords for uppercase=True (<a
href="https://redirect.github.com/shssoichiro/sqlformat-rs/issues/53">#53</a>)</li>
<li>fix: uppercase=false does not lowercase the query (<a
href="https://redirect.github.com/shssoichiro/sqlformat-rs/issues/50">#50</a>)</li>
<li>fix: Possible to provide an escape hatch for expressions (<a
href="https://redirect.github.com/shssoichiro/sqlformat-rs/issues/51">#51</a>)</li>
</ul>
<h2>Version 0.2.6</h2>
<ul>
<li>fix: ON UPDATE with two many blank formatted incorrectly (<a
href="https://redirect.github.com/shssoichiro/sqlformat-rs/issues/46">#46</a>)</li>
<li>fix: <code>EXCEPT</code> not handled well</li>
<li>fix: REFERENCES xyz ON UPDATE .. causes formatter to treat the
remaining as an UPDATE statement</li>
<li>fix: Escaped strings formatted incorrectly</li>
<li>fix: RETURNING is not placed on a new line</li>
<li>fix: fix the issue of misaligned comments after formatting (<a
href="https://redirect.github.com/shssoichiro/sqlformat-rs/issues/40">#40</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/shssoichiro/sqlformat-rs/blob/master/CHANGELOG.md">sqlformat's
changelog</a>.</em></p>
<blockquote>
<h3>Version 0.3.3</h3>
<ul>
<li>Reduce binary size by removing regex dependency (<a
href="https://redirect.github.com/shssoichiro/sqlformat-rs/issues/68">#68</a>)</li>
</ul>
<h3>Version 0.3.2</h3>
<ul>
<li>support ClickHouse/DuckDB join variants</li>
<li>handle double colons better</li>
</ul>
<h3>Version 0.3.1</h3>
<ul>
<li>Allow latest regex version (<a
href="https://redirect.github.com/shssoichiro/sqlformat-rs/issues/55">#55</a>)
<ul>
<li>[slightly breaking] Increases minimum Rust version to 1.65</li>
</ul>
</li>
<li>Fixes for operator parsing (<a
href="https://redirect.github.com/shssoichiro/sqlformat-rs/issues/57">#57</a>)</li>
<li>Performance improvements (<a
href="https://redirect.github.com/shssoichiro/sqlformat-rs/issues/58">#58</a>)</li>
</ul>
<h3>Version 0.3.0</h3>
<ul>
<li>[breaking] fix: Ignore keywords for uppercase=True (<a
href="https://redirect.github.com/shssoichiro/sqlformat-rs/issues/53">#53</a>)</li>
<li>fix: uppercase=false does not lowercase the query (<a
href="https://redirect.github.com/shssoichiro/sqlformat-rs/issues/50">#50</a>)</li>
<li>fix: Possible to provide an escape hatch for expressions (<a
href="https://redirect.github.com/shssoichiro/sqlformat-rs/issues/51">#51</a>)</li>
</ul>
<h3>Version 0.2.6</h3>
<ul>
<li>fix: ON UPDATE with two many blank formatted incorrectly (<a
href="https://redirect.github.com/shssoichiro/sqlformat-rs/issues/46">#46</a>)</li>
<li>fix: <code>EXCEPT</code> not handled well</li>
<li>fix: REFERENCES xyz ON UPDATE .. causes formatter to treat the
remaining as an UPDATE statement</li>
<li>fix: Escaped strings formatted incorrectly</li>
<li>fix: RETURNING is not placed on a new line</li>
<li>fix: fix the issue of misaligned comments after formatting (<a
href="https://redirect.github.com/shssoichiro/sqlformat-rs/issues/40">#40</a>)</li>
</ul>
<h3>Version 0.2.4</h3>
<ul>
<li>Remove <code>itertools</code> dependency <a
href="https://redirect.github.com/shssoichiro/sqlformat-rs/pull/34">#34</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/shssoichiro/sqlformat-rs/commit/8f8d29e12537351d793103b82e22316a6bded387"><code>8f8d29e</code></a>
Version 0.3.3</li>
<li><a
href="https://github.com/shssoichiro/sqlformat-rs/commit/b5b483fd01f777fb93da3e0b1040d8638081d179"><code>b5b483f</code></a>
Merge pull request <a
href="https://redirect.github.com/shssoichiro/sqlformat-rs/issues/68">#68</a>
from magic-akari/master</li>
<li><a
href="https://github.com/shssoichiro/sqlformat-rs/commit/cfafdb8bea284a5861643c8337fd8dd927fdce25"><code>cfafdb8</code></a>
chore: clean code</li>
<li><a
href="https://github.com/shssoichiro/sqlformat-rs/commit/8842dc4b3af0b63fde8970a692f13dc6d40bdd6b"><code>8842dc4</code></a>
chore: clean code</li>
<li><a
href="https://github.com/shssoichiro/sqlformat-rs/commit/1740801d4503305ce80879994d2487e9eb66321a"><code>1740801</code></a>
refactor: Remove regex dependency by using state machine</li>
<li><a
href="https://github.com/shssoichiro/sqlformat-rs/commit/244ecb6514ce8bbab951f36ddd9e67e2628622d9"><code>244ecb6</code></a>
Version 0.3.2</li>
<li><a
href="https://github.com/shssoichiro/sqlformat-rs/commit/827d639bef94d8e5a5a0e29b41185c8d572f24e6"><code>827d639</code></a>
support ClickHouse/DuckDB join variants</li>
<li><a
href="https://github.com/shssoichiro/sqlformat-rs/commit/fe382a4142d0d1ee470b761a2e506c5e4cdc6dad"><code>fe382a4</code></a>
handle_double_colons (<a
href="https://redirect.github.com/shssoichiro/sqlformat-rs/issues/63">#63</a>)</li>
<li><a
href="https://github.com/shssoichiro/sqlformat-rs/commit/aa5b1453dbd936c889d0ad7ef61245320a0b72c5"><code>aa5b145</code></a>
Version 0.3.1</li>
<li><a
href="https://github.com/shssoichiro/sqlformat-rs/commit/3c008712dfd2b703108fa486713f1e0b67b8be67"><code>3c00871</code></a>
optimize matching (<a
href="https://redirect.github.com/shssoichiro/sqlformat-rs/issues/58">#58</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/shssoichiro/sqlformat-rs/compare/v0.2.3...v0.3.3">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=sqlformat&package-manager=cargo&previous-version=0.2.3&new-version=0.3.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Daniel Harvey <danieljamesharvey@gmail.com>
  • Loading branch information
dependabot[bot] and danieljharvey authored Dec 11, 2024
1 parent 5e9eda9 commit 025960a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 17 deletions.
16 changes: 3 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/query-engine/execution/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ bb8-tiberius = "0.15.0"
bytes = "1.6.0"
prometheus = "0.13.3"
serde_json = "1.0.116"
sqlformat = "0.2.3"
sqlformat = "0.3.3"
tokio-stream = "0.1.14"
tracing = "0.1.40"
thiserror = "2.0"
2 changes: 1 addition & 1 deletion crates/query-engine/execution/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ pub async fn explain(
let pretty = sqlformat::format(
&query.sql,
&sqlformat::QueryParams::None,
sqlformat::FormatOptions::default(),
&sqlformat::FormatOptions::default(),
);

Ok((pretty, results.join("\n")))
Expand Down
2 changes: 1 addition & 1 deletion crates/query-engine/translation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ serde_json = "1.0.116"

[dev-dependencies]
insta = { version = "1.38.0", features = ["json"] }
sqlformat = "0.2.3"
sqlformat = "0.3.3"
2 changes: 1 addition & 1 deletion crates/query-engine/translation/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub fn test_translation(testname: &str) -> Result<String, translation::error::Er
let pretty = sqlformat::format(
&query.sql,
&sqlformat::QueryParams::None,
sqlformat::FormatOptions::default(),
&sqlformat::FormatOptions::default(),
);

Ok(format!("{}\n\n{:?}", pretty, params))
Expand Down

0 comments on commit 025960a

Please sign in to comment.