Skip to content

Commit 3f051d1

Browse files
authored
[maint] merge changes from v0.44.0 (apache#17)
[maint] merge changes from v0.44.0
2 parents 04587c2 + 7a90c23 commit 3f051d1

21 files changed

+2354
-243
lines changed

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,42 @@ changes that break via addition as "Added".
1010
## [Unreleased]
1111
Check https://github.com/sqlparser-rs/sqlparser-rs/commits/main for undocumented changes.
1212

13+
## [0.44.0] 2024-03-02
14+
15+
### Added
16+
* Support EXPLAIN / DESCR / DESCRIBE [FORMATTED | EXTENDED] (#1156) - Thanks @jonathanlehtoalamb
17+
* Support ALTER TABLE ... SET LOCATION (#1154) - Thanks @jonathanlehto
18+
* Support `ROW FORMAT DELIMITED` in Hive (#1155) - Thanks @jonathanlehto
19+
* Support `SERDEPROPERTIES` for `CREATE TABLE` with Hive (#1152) - Thanks @jonathanlehto
20+
* Support `EXECUTE ... USING` for Postgres (#1153) - Thanks @jonathanlehto
21+
* Support Postgres style `CREATE FUNCTION` in GenericDialect (#1159) - Thanks @alamb
22+
* Support `SET TBLPROPERTIES` (#1151) - Thanks @jonathanlehto
23+
* Support `UNLOAD` statement (#1150) - Thanks @jonathanlehto
24+
* Support `MATERIALIZED CTEs` (#1148) - Thanks @ReppCodes
25+
* Support `DECLARE` syntax for snowflake and bigquery (#1122) - Thanks @iffyio
26+
* Support `SELECT AS VALUE` and `SELECT AS STRUCT` for BigQuery (#1135) - Thanks @lustefaniak
27+
* Support `(+)` outer join syntax (#1145) - Thanks @jmhain
28+
* Support `INSERT INTO ... SELECT ... RETURNING`(#1132) - Thanks @lovasoa
29+
* Support DuckDB `INSTALL` and `LOAD` (#1127) - Thanks @universalmind303
30+
* Support `=` operator in function args (#1128) - Thanks @universalmind303
31+
* Support `CREATE VIEW IF NOT EXISTS` (#1118) - Thanks @7phs
32+
* Support `UPDATE FROM` for SQLite (further to #694) (#1117) - Thanks @ggaughan
33+
* Support optional `DELETE FROM` statement (#1120) - Thanks @iffyio
34+
* Support MySQL `SHOW STATUS` statement (#1119) - Thanks invm
35+
36+
### Fixed
37+
* Clean up nightly clippy lints (#1158) - Thanks @alamb
38+
* Handle escape, unicode, and hex in tokenize_escaped_single_quoted_string (#1146) - Thanks @JasonLi-cn
39+
* Fix panic while parsing `REPLACE` (#1140) - THanks @jjbayer
40+
* Fix clippy warning from rust 1.76 (#1130) - Thanks @alamb
41+
* Fix release instructions (#1115) - Thanks @alamb
42+
43+
### Changed
44+
* Add `parse_keyword_with_tokens` for paring keyword and tokens combination (#1141) - Thanks @viirya
45+
* Add ParadeDB to list of known users (#1142) - Thanks @philippemnoel
46+
* Accept JSON_TABLE both as an unquoted table name and a table-valued function (#1134) - Thanks @lovasoa
47+
48+
1349
## [0.43.1] 2024-01-22
1450
### Changes
1551
* Fixed CHANGELOG

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sqlparser"
33
description = "Extensible SQL Lexer and Parser with support for ANSI SQL:2011"
4-
version = "0.43.1"
4+
version = "0.44.0"
55
authors = ["Andy Grove <[email protected]>"]
66
homepage = "https://github.com/sqlparser-rs/sqlparser-rs"
77
documentation = "https://docs.rs/sqlparser/"

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ $ cargo run --features json_example --example cli FILENAME.sql [--dialectname]
115115
## Users
116116

117117
This parser is currently being used by the [DataFusion] query engine,
118-
[LocustDB], [Ballista], [GlueSQL], [Opteryx], [PRQL], [Qrlew], and [JumpWire].
118+
[LocustDB], [Ballista], [GlueSQL], [Opteryx], [PRQL], [Qrlew], [JumpWire], and [ParadeDB].
119119

120120
If your project is using sqlparser-rs feel free to make a PR to add it
121121
to this list.
@@ -213,6 +213,7 @@ licensed as above, without any additional terms or conditions.
213213
[PRQL]: https://github.com/PRQL/prql
214214
[Qrlew]: https://github.com/Qrlew/qrlew
215215
[JumpWire]: https://github.com/extragoodlabs/jumpwire
216+
[ParadeDB]: https://github.com/paradedb/paradedb
216217
[Pratt Parser]: https://tdop.github.io/
217218
[sql-2016-grammar]: https://jakewheat.github.io/sql-overview/sql-2016-foundation-grammar.html
218219
[sql-standard]: https://en.wikipedia.org/wiki/ISO/IEC_9075

docs/releasing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $ cargo install cargo-release
1919
```
2020
$ git fetch && git status
2121
On branch main
22-
Your branch is up to date with 'upstream/main'.
22+
Your branch is up to date with 'origin/main'.
2323
2424
nothing to commit, working tree clean
2525
```
@@ -28,7 +28,7 @@ $ cargo install cargo-release
2828
2. Using `cargo-release` we can publish a new release like so:
2929
3030
```
31-
$ cargo release minor --push-remote upstream
31+
$ cargo release minor --push-remote origin
3232
```
3333
3434
After verifying, you can rerun with `--execute` if all looks good.
@@ -39,7 +39,7 @@ $ cargo install cargo-release
3939
* Bump the minor part of the version in `Cargo.toml` (e.g. `0.7.1-alpha.0`
4040
-> `0.8.0`. You can use `patch` instead of `minor`, as appropriate).
4141
* Create a new tag (e.g. `v0.8.0`) locally
42-
* Push the new tag to the specified remote (`upstream` in the above
42+
* Push the new tag to the specified remote (`origin` in the above
4343
example), which will trigger a publishing process to crates.io as part of
4444
the [corresponding GitHub Action](https://github.com/sqlparser-rs/sqlparser-rs/blob/main/.github/workflows/rust.yml).
4545

src/ast/ddl.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ pub enum AlterTableOperation {
143143
///
144144
/// Note: this is Snowflake specific <https://docs.snowflake.com/en/sql-reference/sql/alter-table>
145145
SwapWith { table_name: ObjectName },
146+
/// 'SET TBLPROPERTIES ( { property_key [ = ] property_val } [, ...] )'
147+
SetTblProperties { table_properties: Vec<SqlOption> },
146148
}
147149

148150
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
@@ -283,6 +285,13 @@ impl fmt::Display for AlterTableOperation {
283285
AlterTableOperation::SwapWith { table_name } => {
284286
write!(f, "SWAP WITH {table_name}")
285287
}
288+
AlterTableOperation::SetTblProperties { table_properties } => {
289+
write!(
290+
f,
291+
"SET TBLPROPERTIES({})",
292+
display_comma_separated(table_properties)
293+
)
294+
}
286295
}
287296
}
288297
}

0 commit comments

Comments
 (0)