forked from apache/datafusion-sqlparser-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'v0.53.0' of https://github.com/apache/datafusion-sqlparser-rs
into update * tag 'v0.53.0' of https://github.com/apache/datafusion-sqlparser-rs: (66 commits) Run cargo fmt in derive crate Add Apache license header to spans.rs Update version to 0.53.0 and add release notes (apache#1592) Add support for ODBC functions (apache#1585) Parse `INSERT` with subquery when lacking column names (apache#1586) Support INSERT OVERWRITE INTO syntax (apache#1584) Snowflake ALTER TABLE clustering options (apache#1579) Parse Snowflake USE ROLE and USE SECONDARY ROLES (apache#1578) Add support of the ENUM8|ENUM16 for ClickHouse dialect (apache#1574) Fix displaying WORK or TRANSACTION after BEGIN (apache#1565) Support parsing optional nulls handling for unique constraint (apache#1567) Support BIT column types (apache#1577) Encapsulate CreateFunction (apache#1573) Support Databricks struct literal (apache#1542) Update comments / docs for `Spanned` (apache#1549) Support snowflake double dot notation for object name (apache#1540) `json_object('k' VALUE 'v')` in postgres (apache#1547) Increase version of sqlparser_derive from 0.2.2 to 0.3.0 (apache#1571) Support MySQL size variants for BLOB and TEXT columns (apache#1564) Rename `TokenWithLocation` to `TokenWithSpan`, in backwards compatible way (apache#1562) ...
- Loading branch information
Showing
89 changed files
with
12,647 additions
and
3,227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
# 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: Rust | ||
|
||
on: [push, pull_request] | ||
|
@@ -10,7 +27,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- name: Setup Rust Toolchain | ||
uses: ./.github/actions/setup-builder | ||
- run: cargo fmt -- --check | ||
- run: cargo fmt --all -- --check | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
|
@@ -68,38 +85,3 @@ jobs: | |
use-tool-cache: true | ||
- name: Test | ||
run: cargo test --all-features | ||
|
||
test-coverage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Rust Toolchain | ||
uses: ./.github/actions/setup-builder | ||
with: | ||
rust-version: stable | ||
- name: Install Tarpaulin | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-tarpaulin | ||
version: 0.14.2 | ||
use-tool-cache: true | ||
- name: Coverage | ||
run: cargo tarpaulin -o Lcov --output-dir ./coverage | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
publish-crate: | ||
if: startsWith(github.ref, 'refs/tags/v0') | ||
runs-on: ubuntu-latest | ||
needs: [test] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Rust Toolchain | ||
uses: ./.github/actions/setup-builder | ||
- name: Publish | ||
shell: bash | ||
run: | | ||
cargo publish --token ${{ secrets.CRATES_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,12 +18,12 @@ | |
[package] | ||
name = "sqlparser" | ||
description = "Extensible SQL Lexer and Parser with support for ANSI SQL:2011" | ||
version = "0.51.0" | ||
authors = ["Andy Grove <[email protected]>"] | ||
homepage = "https://github.com/sqlparser-rs/sqlparser-rs" | ||
version = "0.53.0" | ||
authors = ["Apache DataFusion <[email protected]>"] | ||
homepage = "https://github.com/apache/datafusion-sqlparser-rs" | ||
documentation = "https://docs.rs/sqlparser/" | ||
keywords = ["ansi", "sql", "lexer", "parser"] | ||
repository = "https://github.com/sqlparser-rs/sqlparser-rs" | ||
repository = "https://github.com/apache/datafusion-sqlparser-rs" | ||
license = "Apache-2.0" | ||
include = [ | ||
"src/**/*.rs", | ||
|
@@ -51,19 +51,13 @@ serde = { version = "1.0", features = ["derive"], optional = true } | |
# of dev-dependencies because of | ||
# https://github.com/rust-lang/cargo/issues/1596 | ||
serde_json = { version = "1.0", optional = true } | ||
sqlparser_derive = { version = "0.2.0", path = "derive", optional = true } | ||
sqlparser_derive = { version = "0.3.0", path = "derive", optional = true } | ||
|
||
[dev-dependencies] | ||
simple_logger = "5.0" | ||
matches = "0.1" | ||
pretty_assertions = "1" | ||
|
||
[package.metadata.release] | ||
# Instruct `cargo release` to not run `cargo publish` locally: | ||
# https://github.com/sunng87/cargo-release/blob/master/docs/reference.md#config-fields | ||
# See docs/releasing.md for details. | ||
publish = false | ||
|
||
[package.metadata.docs.rs] | ||
# Document these features on docs.rs | ||
features = ["serde", "visitor"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.