update_statistics
Update existing statistics on a Microsoft Fabric Data Warehouse table to optimize query performance. Supports full scan or sample percentage.
Instructions
Update an existing statistic via UPDATE STATISTICS.
Only supported on Data Warehouses (SQL Analytics Endpoints are read-only).
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.
stat_name: Name of the statistic to update.
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 |
|---|---|---|---|
| item | Yes | ||
| fullscan | No | ||
| stat_name | Yes | ||
| workspace | Yes | ||
| sample_percent | No | ||
| qualified_table | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||