-
Notifications
You must be signed in to change notification settings - Fork 0
SQL Refactoring
github-actions[bot] edited this page Apr 16, 2026
·
2 revisions
/refactor-query restructures source SQL into import/logical/final CTE form and persists only proof-backed results.
manifest.json- completed scoping
- completed profiling
- approved test spec
- sandbox available if you want executable compare proof
If the sandbox is unavailable or you explicitly skip executable compare, the command can still persist semantic-review-backed results as partial.
/refactor-query silver.DimCustomer silver.FactInternetSales
- gather refactor context
- extract the ground-truth SQL
- restructure it into import/logical/final CTEs
- run semantic review and, when available, executable compare
- persist the refactor result
- commit successful items and optionally raise a PR
For table migrations, the proof-backed refactor is persisted on the selected writer procedure catalog entry:
catalog/procedures/<selected_writer>.json
For views and materialized views, the refactor is persisted on the view catalog entry:
catalog/views/<item_id>.json
That persisted refactor state is what /generate-model consumes later.
-
okfor proof-backed success -
partialwhen semantic proof succeeded but executable proof was skipped or incomplete -
errorwhen refactor could not be completed
Proceed to Model Generation.
Getting Started
Project Setup (run once)
Whole-Mart Migration
Per-Object Migration (repeat per table)
Commands and CLI
Exploring the Catalog
Operations
- Status Dashboard
- Deciding Data Domains for Migration
- Handling Diagnostic Errors and Warnings
- Browsing the Catalog
- Sandbox Operations
- Git Workflow
Reference
- Glossary
-
verifying-completion-claimsskill - Profiling Signals
- SQL Server Connection Variables
- Oracle Connection Variables
- Troubleshooting and Error Codes