Parse SQL and report syntax errors with line:col positions. Offline - no control-plane round-trip.
/validate <sql>
## Overview `/validate` runs the embedded delta-forge-toolkit parser against the argument string and reports any syntax errors it encounters, each with a line and column position. It does not execute SQL, hit the catalog, or contact a compute node; the parser is linked into the CLI binary, so the command works with no network and no authentication. ## Behavior - Accepts one or more statements separated by semicolons. Errors are reported per-statement with a pointer to the offending token. - On success, produces a green OK card with statement count. On failure, the error body includes line, column, and a snippet of the offending source with a caret. - Parser dialect matches exactly what the DeltaForge engine and REPL use, so a pass here is a reliable signal that the engine will not reject the statement at parse time. - Semantic checks (does the table exist, does the column type match) are NOT performed. `/validate` is purely a syntax gate. - Catalog references like `sales.orders` are not resolved.
/validate SELECT * FROM orders WHERE total >;
/validate CREATE TABLE t (id INT, name STRING) USING DELTA
/validate INSERT INTO sales.orders VALUES (1, 'ok'); UPDATE x SET y=1;