Skip to content

Commit e095d53

Browse files
authored
[chore] Update latest commit from upstream (#30)
This includes some bug fixes I pushed upstream for Snowflake and Databricks.
2 parents f8ad9c1 + e0b7e7e commit e095d53

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+14567
-3703
lines changed

.asf.yaml

+38
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+
# This file controls the settings of this repository
19+
#
20+
# See more details at
21+
# https://cwiki.apache.org/confluence/display/INFRA/Git+-+.asf.yaml+features
22+
23+
notifications:
24+
25+
26+
pullrequests: [email protected]
27+
github:
28+
description: "Extensible SQL Lexer and Parser for Rust"
29+
labels:
30+
- big-data
31+
- rust
32+
- sql
33+
enabled_merge_buttons:
34+
squash: true
35+
merge: false
36+
rebase: false
37+
features:
38+
issues: true

.github/dependabot.yml

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
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+
118
version: 2
219
updates:
320
- package-ecosystem: cargo

.github/workflows/rust.yml

+18-40
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
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+
118
name: Rust
219

320
on: [push, pull_request]
@@ -10,11 +27,7 @@ jobs:
1027
- uses: actions/checkout@v4
1128
- name: Setup Rust Toolchain
1229
uses: ./.github/actions/setup-builder
13-
with:
14-
# Note that `nightly` is required for `license_template_path`, as
15-
# it's an unstable feature.
16-
rust-version: nightly
17-
- run: cargo +nightly fmt -- --check --config-path <(echo 'license_template_path = "HEADER"')
30+
- run: cargo fmt -- --check
1831

1932
lint:
2033
runs-on: ubuntu-latest
@@ -72,38 +85,3 @@ jobs:
7285
use-tool-cache: true
7386
- name: Test
7487
run: cargo test --all-features
75-
76-
test-coverage:
77-
runs-on: ubuntu-latest
78-
steps:
79-
- name: Checkout
80-
uses: actions/checkout@v4
81-
- name: Setup Rust Toolchain
82-
uses: ./.github/actions/setup-builder
83-
with:
84-
rust-version: stable
85-
- name: Install Tarpaulin
86-
uses: actions-rs/[email protected]
87-
with:
88-
crate: cargo-tarpaulin
89-
version: 0.14.2
90-
use-tool-cache: true
91-
- name: Coverage
92-
run: cargo tarpaulin -o Lcov --output-dir ./coverage
93-
- name: Coveralls
94-
uses: coverallsapp/github-action@master
95-
with:
96-
github-token: ${{ secrets.GITHUB_TOKEN }}
97-
98-
publish-crate:
99-
if: startsWith(github.ref, 'refs/tags/v0')
100-
runs-on: ubuntu-latest
101-
needs: [test]
102-
steps:
103-
- uses: actions/checkout@v4
104-
- name: Setup Rust Toolchain
105-
uses: ./.github/actions/setup-builder
106-
- name: Publish
107-
shell: bash
108-
run: |
109-
cargo publish --token ${{ secrets.CRATES_TOKEN }}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/target/
44
/sqlparser_bench/target/
55
/derive/target/
6+
dev/dist
67

78
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
89
# More information here http://doc.crates.io/guide.html#cargotoml-vs-cargolock

0 commit comments

Comments
 (0)