Skip to content

Commit 9c6ec54

Browse files
authored
merge changes from v0.48.0 (#27)
2 parents 25c2715 + 485d849 commit 9c6ec54

34 files changed

+4112
-936
lines changed

.github/workflows/stale.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
name: "Close stale PRs"
19+
on:
20+
schedule:
21+
- cron: "30 1 * * *"
22+
23+
jobs:
24+
close-stale-prs:
25+
runs-on: ubuntu-latest
26+
permissions:
27+
issues: write
28+
pull-requests: write
29+
steps:
30+
- uses: actions/stale@v9
31+
with:
32+
stale-pr-message: "Thank you for your contribution. Unfortunately, this pull request is stale because it has been open 60 days with no activity. Please remove the stale label or comment or this will be closed in 7 days."
33+
days-before-pr-stale: 60
34+
days-before-pr-close: 7
35+
# do not close stale issues
36+
days-before-issue-stale: -1
37+
days-before-issue-close: -1
38+
repo-token: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,43 @@ 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.48.0] 2024-07-09
14+
15+
Huge shout out to @iffyio @jmhain and @lovasoa for their help reviewing and merging PRs!
16+
17+
### Fixed
18+
* Fix CI error message in CI (#1333) - Thanks @alamb
19+
* Fix typo in sqlparser-derive README (#1310) - Thanks @leoyvens
20+
* Re-enable trailing commas in DCL (#1318) - Thanks @MohamedAbdeen21
21+
* Fix a few typos in comment lines (#1316) - Thanks @git-hulk
22+
* Fix Snowflake `SELECT * wildcard REPLACE ... RENAME` order (#1321) - Thanks @alexander-beedie
23+
* Allow semi-colon at the end of UNCACHE statement (#1320) - Thanks @LorrensP-2158466
24+
* Return errors, not panic, when integers fail to parse in `AUTO_INCREMENT` and `TOP` (#1305) - Thanks @eejbyfeldt
25+
26+
### Added
27+
* Support `OWNER TO` clause in Postgres (#1314) - Thanks @gainings
28+
* Support `FORMAT` clause for ClickHouse (#1335) - Thanks @git-hulk
29+
* Support `DROP PROCEDURE` statement (#1324) - Thanks @LorrensP-2158466
30+
* Support `PREWHERE` condition for ClickHouse dialect (#1328) - Thanks @git-hulk
31+
* Support `SETTINGS` pairs for ClickHouse dialect (#1327) - Thanks @git-hulk
32+
* Support `GROUP BY WITH MODIFIER` for ClickHouse dialect (#1323) - Thanks @git-hulk
33+
* Support DuckDB Union datatype (#1322) - Thanks @gstvg
34+
* Support parametric arguments to `FUNCTION` for ClickHouse dialect (#1315) - Thanks @git-hulk
35+
* Support `TO` in `CREATE VIEW` clause for Clickhouse (#1313) - Thanks @Bidaya0
36+
* Support `UPDATE` statements that contain tuple assignments (#1317) - Thanks @lovasoa
37+
* Support `BY NAME quantifier across all set ops (#1309) - Thanks @alexander-beedie
38+
* Support SnowFlake exclusive `CREATE TABLE` options (#1233) - Thanks @balliegojr
39+
* Support ClickHouse `CREATE TABLE` with primary key and parametrised table engine (#1289) - Thanks @7phs
40+
* Support custom operators in Postgres (#1302) - Thanks @lovasoa
41+
* Support ClickHouse data types (#1285) - Thanks @7phs
42+
43+
### Changed
44+
* Add stale PR github workflow (#1331) - Thanks @alamb
45+
* Refine docs (#1326) - Thanks @emilsivervik
46+
* Improve error messages with additional colons (#1319) - Thanks @LorrensP-2158466
47+
* Move Display fmt to struct for `CreateIndex` (#1307) - Thanks @philipcristiano
48+
* Enhancing Trailing Comma Option (#1212) - Thanks @MohamedAbdeen21
49+
* Encapsulate `CreateTable`, `CreateIndex` into specific structs (#1291) - Thanks @philipcristiano
1350

1451
## [0.47.0] 2024-06-01
1552

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.47.0"
4+
version = "0.48.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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,12 @@ $ cargo run --features json_example --example cli FILENAME.sql [--dialectname]
114114

115115
## Users
116116

117-
This parser is currently being used by the [DataFusion] query engine,
118-
[LocustDB], [Ballista], [GlueSQL], [Opteryx], [PRQL], [Qrlew], [JumpWire], and [ParadeDB].
117+
This parser is currently being used by the [DataFusion] query engine, [LocustDB],
118+
[Ballista], [GlueSQL], [Opteryx], [Polars], [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.
122122

123-
124123
## Design
125124

126125
The core expression parser uses the [Pratt Parser] design, which is a top-down
@@ -210,6 +209,7 @@ licensed as above, without any additional terms or conditions.
210209
[Ballista]: https://github.com/apache/arrow-ballista
211210
[GlueSQL]: https://github.com/gluesql/gluesql
212211
[Opteryx]: https://github.com/mabel-dev/opteryx
212+
[Polars]: https://pola.rs/
213213
[PRQL]: https://github.com/PRQL/prql
214214
[Qrlew]: https://github.com/Qrlew/qrlew
215215
[JumpWire]: https://github.com/extragoodlabs/jumpwire

derive/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ impl Visit for TableFactor {
9797
match self {
9898
Self::Table { name, alias } => {
9999
visitor.pre_visit_relation(name)?;
100-
alias.visit(name)?;
100+
name.visit(visitor)?;
101101
visitor.post_visit_relation(name)?;
102102
alias.visit(visitor)?;
103103
}

0 commit comments

Comments
 (0)