STET

flux-pr-1501

sqlparser-rs (Rust) · W1 · GPT-5.1 Codex Mini

pass_with_warn

Tests passed. 1/1 commands passed. Strength: strong.

100.0% run pass rate
Tier 1
primary testspassednon equivalentdecision conflictfail
env PATH=/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin cargo test --all-features
gold passagent pass

Partial score: 1/1

Publishable: noCache: miss

Trajectory

unknown · partial order only

Canonical trajectory missing; showing coarse derived order only.

patch written
Patch captured
#1

Stet captured agent.patch for this trial.

validation
Tests passed
#2
equivalence
Equivalence judgment
#3

non_equivalent

code review
Code review judgment
#4

fail

decision
Final decision
#5

pass_with_warn

Quality

equivalence
non_equivalent
82% confidence
code review
fail · 30/100
3 findings
footprint
low (0.27)
behavioral
100.0%
cost

Equivalence Reasoning

behavioral

The patch appears to miss core SHOW behavior integration: in the shown parser changes, `parse_show()` still consumes `DATABASES/SCHEMAS` before calling `parse_show_databases()/parse_show_schemas()`, but those functions now also `expect` the same keyword, which is a functional mismatch. The visible changes also don’t clearly show the required dialect hook for LIKE-before-IN ordering and Snowflake modifiers wired consistently across all SHOW variants, so intent is not fully satisfied.

Code Review

correctness: 1/4introduced bug risk: 1/4edge case handling: 1/4maintainability idioms: 2/4

The patch does not likely satisfy the intended change: it partially reshapes SHOW AST/options but introduces high-probability parser regressions in keyword consumption/order and likely drops some SHOW variants.

3 findings
SHOW DATABASES/SCHEMAS keywords are consumed twice
major

parse_show already consumes DATABASES/SCHEMAS before delegating, but parse_show_databases/parse_show_schemas then call expect_keyword for DATABASES/SCHEMAS again. This will fail on valid input because the token has advanced past the object type.

src/parser/mod.rs:9656
TERSE modifier parsing is placed after type keyword
major

TERSE is parsed inside parse_show_databases/parse_show_schemas, but these functions are entered only after DATABASES/SCHEMAS has already been matched. Valid forms like SHOW TERSE DATABASES cannot be parsed correctly with this ordering.

src/parser/mod.rs:9615
MATERIALIZED VIEWS branch appears removed from SHOW dispatch
major

Previous logic explicitly handled MATERIALIZED VIEWS, but new dispatch only checks a single peek_show_keyword path to VIEWS and calls parse_show_views() without the materialized flag. This risks rejecting or mis-parsing SHOW MATERIALIZED VIEWS.

src/parser/mod.rs:9623