Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: ✅ Azure Data Explorer
Changes the materialized view's merge policy. The merge policy defines if and how Extents (Data Shards) should get merged.
Permissions
You must have at least Database Admin permissions to run this command.
Syntax
.alter-merge materialized-view MaterializedViewName policy merge PolicyObject
Learn more about syntax conventions.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| MaterializedViewName | string |
✔️ | The name of the materialized view. |
| PolicyObject | string |
✔️ | A serialized array of one or more JSON policy objects. For more information, see merge policy. |
Example
Change a single property of the policy at the materialized view level, retaining all other properties as before:
.alter-merge materialized-view [materialized_view_name] policy merge ```
{
"MaxRangeInHours": 24
}```