update_statistics
Update a table statistic in a Microsoft Fabric Data Warehouse. Specify fullscan or sample percentage for the update.
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 |
|---|---|---|---|
| workspace | Yes | ||
| item | Yes | ||
| qualified_table | Yes | ||
| stat_name | Yes | ||
| fullscan | No | ||
| sample_percent | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||