create_statistics
Create a single-column statistic on a Data Warehouse table to improve query performance. Supports full scan or sample percent.
Instructions
Create a single-column statistic on a table.
Only supported on Data Warehouses (SQL Analytics Endpoints are read-only). Only single-column statistics are supported (Fabric limitation).
Args:
workspace: Workspace name or GUID.
item: Warehouse name or GUID. SQL Analytics Endpoints are rejected.
qualified_table: Qualified table name, e.g. dbo.sales.
column: Column name to build the statistic on.
stat_name: Name for the new statistic.
fullscan: When True (default), use WITH FULLSCAN.
Ignored when sample_percent is provided.
sample_percent: Sample percentage (1-100). When provided, overrides fullscan
and uses WITH SAMPLE n PERCENT.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | ||
| item | Yes | ||
| qualified_table | Yes | ||
| column | Yes | ||
| stat_name | Yes | ||
| fullscan | No | ||
| sample_percent | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||