You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* chore(tests): restore green main; fix clippy and keyword sort regressions
`cargo test --all-features` and `cargo clippy --all-targets --all-features
-- -D warnings` were both failing on `main`; CI never ran on the fork to
catch it. This commit makes them green so subsequent PRs can be
verified.
Test compile errors:
- `Statement::AlterTable` was refactored from struct to tuple form
carrying `AlterTable`. Update 10 ATTACH/DETACH PARTITION test sites
in `sqlparser_postgres.rs` to match the new shape.
- `CreateView` gained a `with_data` field (added with the
`WITH [NO] DATA` parser support). Add `with_data: _,` to 6 destructure
sites in `sqlparser_common.rs`.
Test runtime failures:
- `all_keywords_sorted`: `CONFIGURATION`, `INLINE`, and `TRANSFORM` were
inserted out of ASCII order in `keywords.rs`; move each to its
alphabetical slot.
- `alter_procedure_rename` / `alter_procedure_set_search_path` /
`parse_fulltext_column_and_index_in_postgres`: `verified_stmt` round-trip
fails because Display canonicalises type names and access methods to
uppercase. Update the input SQL to match.
Lib clippy regressions (forbidden via `#![forbid(clippy::unreachable)]`
and `-D warnings`):
- `parse_create_aggregate_options` PARALLEL arm: replace `_ => unreachable!()`
with an explicit `Internal parser error` so `clippy::unreachable` is
satisfied.
- `parse_create_aggregate_args`: drop the let-and-return.
- `parse_create_rule` INSTEAD/ALSO: collapse the always-false else-if
branches into a single optional-keyword consume.
Doctest:
- `Statement::CreateStatistics` doc block was missing its opening
```sql fence.
Spans:
- Drop the duplicate `ForceRowLevelSecurity` / `NoForceRowLevelSecurity`
arms in `AlterTableOperation::span()` (warnings, but `-D warnings`
blocks clippy).
* chore(ci): fix lint, no-std, RAT, and benchmark-lint regressions
CI on `main` was failing five jobs (test/lint/compile-no-std/RAT/
benchmark-lint). The first commit on this branch fixed test compile +
runtime + a few clippy and doctest issues found locally. CI surfaced
the rest. This commit covers them.
`lint` (clippy 1.95 — 8 collapsible_match errors)
- Fold inner `if` blocks into match guards in `parse_sql` (END token
delimiter), `parse_compound_field` (period-qualified identifier), the
DO/loop sequence terminator, and the five `HiveRowFormat::DELIMITED`
arms (FIELDS / COLLECTION / MAP / LINES / NULL DEFINED AS).
`compile-no-std` (`thumbv6m-none-eabi`)
- `src/ast/table_constraints.rs` introduced an EXCLUDE-constraint type
with `pub operator: String` but did not import `String` in the
`#[cfg(not(feature = "std"))]` alloc block. Add `string::String`.
`Release Audit Tool (RAT)`
- Add `CLAUDE.md` to `dev/release/rat_exclude_files.txt` next to the
existing `AGENTS.md` exclusion. Both are agent-guideline files that
do not need an Apache header.
`benchmark-lint`
- `sqlparser_bench/Cargo.toml` referenced the path-dep as `sqlparser`
but the fork's package was renamed to `pgmold-sqlparser`. Add the
`package = "pgmold-sqlparser"` rename so the bench resolves.
Verified locally on rustc 1.95.0:
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
cargo test --all-features
cargo check --no-default-features --target thumbv6m-none-eabi
(cd sqlparser_bench && cargo clippy --all-targets --all-features -- -D warnings)
0 commit comments