Goal
Build a self-contained PawSQL workspace from table, view, constraint, and index definitions without a live database connection.What to include
CREATE TABLEstatements for every referenced table;- column names, data types, nullability, and defaults;
- primary keys, unique constraints, and relevant foreign keys;
- existing index definitions and key order;
- view definitions used by the query;
- schema-qualified object names where needed;
- relevant partitioning or distribution definitions.
Table and column names may be enough for basic parsing, but metadata-dependent rewrites and index analysis often require types, constraints, and existing indexes.
Example
Create the workspace
With DDL as the source, create the workspace in these steps:1
Create a workspace
Open workspace management in the correct organization or project, then enter a name and purpose.
2
Select engine and version
Match the DDL and target SQL.
3
Choose DDL as the source
Open the DDL input or upload flow.
4
Provide the definitions
Paste or upload current, sanitized DDL.
5
Review parsing
Inspect recognized schemas, objects, constraints, indexes, and failures.
Multiple schemas
When identical object names exist in multiple schemas:- qualify names in DDL;
- set the appropriate default schema;
- preserve the schema relationships used in production SQL;
- test unqualified names explicitly.