mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 06:18:17 +00:00
format
This commit is contained in:
parent
0687d3aca8
commit
a2613f9dd1
2 changed files with 2 additions and 2 deletions
2
.github/workflows/rust.yml
vendored
2
.github/workflows/rust.yml
vendored
|
@ -11,6 +11,7 @@ jobs:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Setup Rust
|
- name: Setup Rust
|
||||||
run: |
|
run: |
|
||||||
|
rustup toolchain install nightly && rustup component add --toolchain nightly rustfmt
|
||||||
rustup toolchain install stable
|
rustup toolchain install stable
|
||||||
rustup override set stable
|
rustup override set stable
|
||||||
# Clippy must be run first, as its lints are only triggered during
|
# Clippy must be run first, as its lints are only triggered during
|
||||||
|
@ -21,7 +22,6 @@ jobs:
|
||||||
# run: cargo clippy -- --all-targets --all-features -- -D warnings
|
# run: cargo clippy -- --all-targets --all-features -- -D warnings
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: |
|
run: |
|
||||||
rustup toolchain install nightly && rustup component add --toolchain nightly rustfmt
|
|
||||||
cargo +nightly fmt -- --check --config-path <(echo 'license_template_path = "HEADER"')
|
cargo +nightly fmt -- --check --config-path <(echo 'license_template_path = "HEADER"')
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --verbose
|
run: cargo build --verbose
|
||||||
|
|
|
@ -1370,7 +1370,7 @@ fn parse_simple_math_expr_minus() {
|
||||||
fn parse_delimited_identifiers() {
|
fn parse_delimited_identifiers() {
|
||||||
// check that quoted identifiers in any position remain quoted after serialization
|
// check that quoted identifiers in any position remain quoted after serialization
|
||||||
let select = verified_only_select(
|
let select = verified_only_select(
|
||||||
r#"SELECT "alias"."bar baz", "myfun"(), "simple id" AS "column alias" FROM "a table" AS "alias""#
|
r#"SELECT "alias"."bar baz", "myfun"(), "simple id" AS "column alias" FROM "a table" AS "alias""#,
|
||||||
);
|
);
|
||||||
// check FROM
|
// check FROM
|
||||||
match only(select.from).relation {
|
match only(select.from).relation {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue