#2498·WrenAI

Strip trailing semicolon on dry_run / EXPLAIN / describe across connectors

Author: goldmedalCreated Jul 14, 2026Updated Sep 26, 2026
Labelspythoncorestale

Context

Follow-up to #2441 / #2480 (shared strip_trailing_semicolon in connector/base.py).

Validation paths — dry_run, EXPLAIN, Snowflake describe — don't uniformly strip the trailing ;, so a trailing semicolon breaks validation even when execution would succeed. This issue tracks routing every connector's validation path through the shared helper, in one PR.

Prerequisite: blocked by #2480 — rebase onto it so each change is "import + one call", not a new local copy.

Scope

Fold in and close

  • datafusion — dry_run half of #2483
  • spark — dry_run half of #2464
  • snowflake describe #2487

Close as redundant

  • #2463 (datafusion dry_run) — superseded by #2483, which covers datafusion dry_run and the unlimited-query path

The query/unlimited-query half of #2483 and #2464 is tracked in #2497.

Use the shared helper — don't add local copies

spark and snowflake are not migrated by #2480, so their entries here must import strip_trailing_semicolon from base, not introduce a per-connector _strip_trailing_semicolon.

Done when

  • Every connector strips on its dry_run / EXPLAIN / describe path via the shared helper
  • Listed PRs folded in and closed