create_table
Create a new SQL table by executing a CTAS (CREATE TABLE AS SELECT) statement on a specified warehouse or SQL endpoint.
Instructions
Create a new SQL table via CTAS (CREATE TABLE AS SELECT).
CAUTION: select_body is executed verbatim as DDL on the warehouse.
Ensure the body matches the user's intent before calling this tool.
The first non-comment keyword of select_body must be SELECT.
Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
qualified_name: Dot-separated qualified table name, e.g. dbo.sales.
select_body: The SELECT statement that becomes the CTAS source.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | ||
| item | Yes | ||
| qualified_name | Yes | ||
| select_body | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||