Skip to content

Commit

Permalink
merge changes from v0.48.0 (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmhain authored Jul 15, 2024
2 parents 25c2715 + 485d849 commit 9c6ec54
Show file tree
Hide file tree
Showing 34 changed files with 4,112 additions and 936 deletions.
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

0 comments on commit 9c6ec54

Please sign in to comment.