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

merge changes from v0.48.0 #27

Merged
merged 31 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
a0f511c
Encapsulate `CreateTable`, `CreateIndex` into specific structs (#1291)
philipcristiano Jun 5, 2024
6d4776b
Enhancing Trailing Comma Option (#1212)
MohamedAbdeen21 Jun 7, 2024
2fb919d
ClickHouse data types (#1285)
7phs Jun 7, 2024
4b60866
add support for custom operators in postgres (#1302)
lovasoa Jun 7, 2024
3c33ac1
ClickHouse: support of create table query with primary key and parame…
7phs Jun 7, 2024
be77ce5
Add support for snowflake exclusive create table options (#1233)
balliegojr Jun 9, 2024
deac269
CreateIndex: Move Display fmt to struct (#1307)
philipcristiano Jun 17, 2024
0330f9d
Support use of `BY NAME` quantifier across all set ops (#1309)
alexander-beedie Jun 17, 2024
345e209
add support for update statements that contain tuple assignments (#1317)
lovasoa Jun 18, 2024
79af31b
Return errors, not panic, when integers fail to parse in `AUTO_INCREM…
eejbyfeldt Jun 18, 2024
f16c1af
Improve error messages with additional colons (#1319)
LorrensP-2158466 Jun 21, 2024
f3d2f78
Support `TO` in `CREATE VIEW` clause for Clickhouse (#1313)
Bidaya0 Jun 23, 2024
7a9793b
Allow semi-colon at the end of UNCACHE statement (#1320)
LorrensP-2158466 Jun 23, 2024
a685e11
Support parametric arguments to `FUNCTION` for ClickHouse dialect (#…
git-hulk Jun 23, 2024
f5ccef6
Fix Snowflake `SELECT *` wildcard `REPLACE ... RENAME` order (#1321)
alexander-beedie Jun 27, 2024
f9ab8dc
Support for DuckDB Union datatype (#1322)
gstvg Jun 27, 2024
376889a
chore(docs): refine docs (#1326)
emilsivervik Jun 30, 2024
0b1a413
Fix a few typos in comment lines (#1316)
git-hulk Jun 30, 2024
44d7a20
Support `GROUP BY WITH MODIFIER` for ClickHouse (#1323)
git-hulk Jun 30, 2024
700bd03
Support `SETTINGS` pairs for ClickHouse dialect (#1327)
git-hulk Jul 7, 2024
0884dd9
Support `PREWHERE` condition for ClickHouse dialect (#1328)
git-hulk Jul 7, 2024
f77192d
Re-enable trailing commas in DCL (#1318)
MohamedAbdeen21 Jul 8, 2024
66b4ec8
Fix typo in `sqlparser-derive` README (#1310)
leoyvens Jul 8, 2024
17e5c0c
Fix CI error message in CI (#1333)
alamb Jul 8, 2024
bbee052
Add stale PR github workflow (#1331)
alamb Jul 8, 2024
9f60eb1
Support `DROP PROCEDURE` statement (#1324)
LorrensP-2158466 Jul 9, 2024
0727895
Add support of FORMAT clause for ClickHouse parser (#1335)
git-hulk Jul 9, 2024
32b8276
Postgres: support for `OWNER TO` clause (#1314)
gainings Jul 9, 2024
4e956a1
Add CHANGELOG for 0.48.0 (#1334)
alamb Jul 9, 2024
285f492
chore: Release sqlparser version 0.48.0
alamb Jul 9, 2024
485d849
Merge tag 'v0.48.0'
jmhain Jul 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

name: "Close stale PRs"
on:
schedule:
- cron: "30 1 * * *"

jobs:
close-stale-prs:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
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."
days-before-pr-stale: 60
days-before-pr-close: 7
# do not close stale issues
days-before-issue-stale: -1
days-before-issue-close: -1
repo-token: ${{ secrets.GITHUB_TOKEN }}
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,43 @@ changes that break via addition as "Added".
## [Unreleased]
Check https://github.com/sqlparser-rs/sqlparser-rs/commits/main for undocumented changes.

## [0.48.0] 2024-07-09

Huge shout out to @iffyio @jmhain and @lovasoa for their help reviewing and merging PRs!

### Fixed
* Fix CI error message in CI (#1333) - Thanks @alamb
* Fix typo in sqlparser-derive README (#1310) - Thanks @leoyvens
* Re-enable trailing commas in DCL (#1318) - Thanks @MohamedAbdeen21
* Fix a few typos in comment lines (#1316) - Thanks @git-hulk
* Fix Snowflake `SELECT * wildcard REPLACE ... RENAME` order (#1321) - Thanks @alexander-beedie
* Allow semi-colon at the end of UNCACHE statement (#1320) - Thanks @LorrensP-2158466
* Return errors, not panic, when integers fail to parse in `AUTO_INCREMENT` and `TOP` (#1305) - Thanks @eejbyfeldt

### Added
* Support `OWNER TO` clause in Postgres (#1314) - Thanks @gainings
* Support `FORMAT` clause for ClickHouse (#1335) - Thanks @git-hulk
* Support `DROP PROCEDURE` statement (#1324) - Thanks @LorrensP-2158466
* Support `PREWHERE` condition for ClickHouse dialect (#1328) - Thanks @git-hulk
* Support `SETTINGS` pairs for ClickHouse dialect (#1327) - Thanks @git-hulk
* Support `GROUP BY WITH MODIFIER` for ClickHouse dialect (#1323) - Thanks @git-hulk
* Support DuckDB Union datatype (#1322) - Thanks @gstvg
* Support parametric arguments to `FUNCTION` for ClickHouse dialect (#1315) - Thanks @git-hulk
* Support `TO` in `CREATE VIEW` clause for Clickhouse (#1313) - Thanks @Bidaya0
* Support `UPDATE` statements that contain tuple assignments (#1317) - Thanks @lovasoa
* Support `BY NAME quantifier across all set ops (#1309) - Thanks @alexander-beedie
* Support SnowFlake exclusive `CREATE TABLE` options (#1233) - Thanks @balliegojr
* Support ClickHouse `CREATE TABLE` with primary key and parametrised table engine (#1289) - Thanks @7phs
* Support custom operators in Postgres (#1302) - Thanks @lovasoa
* Support ClickHouse data types (#1285) - Thanks @7phs

### Changed
* Add stale PR github workflow (#1331) - Thanks @alamb
* Refine docs (#1326) - Thanks @emilsivervik
* Improve error messages with additional colons (#1319) - Thanks @LorrensP-2158466
* Move Display fmt to struct for `CreateIndex` (#1307) - Thanks @philipcristiano
* Enhancing Trailing Comma Option (#1212) - Thanks @MohamedAbdeen21
* Encapsulate `CreateTable`, `CreateIndex` into specific structs (#1291) - Thanks @philipcristiano

## [0.47.0] 2024-06-01

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "sqlparser"
description = "Extensible SQL Lexer and Parser with support for ANSI SQL:2011"
version = "0.47.0"
version = "0.48.0"
authors = ["Andy Grove <[email protected]>"]
homepage = "https://github.com/sqlparser-rs/sqlparser-rs"
documentation = "https://docs.rs/sqlparser/"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,12 @@ $ cargo run --features json_example --example cli FILENAME.sql [--dialectname]

## Users

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

If your project is using sqlparser-rs feel free to make a PR to add it
to this list.


## Design

The core expression parser uses the [Pratt Parser] design, which is a top-down
Expand Down Expand Up @@ -210,6 +209,7 @@ licensed as above, without any additional terms or conditions.
[Ballista]: https://github.com/apache/arrow-ballista
[GlueSQL]: https://github.com/gluesql/gluesql
[Opteryx]: https://github.com/mabel-dev/opteryx
[Polars]: https://pola.rs/
[PRQL]: https://github.com/PRQL/prql
[Qrlew]: https://github.com/Qrlew/qrlew
[JumpWire]: https://github.com/extragoodlabs/jumpwire
Expand Down
2 changes: 1 addition & 1 deletion derive/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl Visit for TableFactor {
match self {
Self::Table { name, alias } => {
visitor.pre_visit_relation(name)?;
alias.visit(name)?;
name.visit(visitor)?;
visitor.post_visit_relation(name)?;
alias.visit(visitor)?;
}
Expand Down
Loading
Loading