You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dbcc03f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: data-explorer/kusto/management/update-policy.md
+162-4Lines changed: 162 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Update policy overview
3
3
description: Learn how to trigger an update policy to add data to a source table.
4
4
ms.reviewer: orspodek
5
5
ms.topic: reference
6
-
ms.date: 06/01/2026
6
+
ms.date: 09/06/2026
7
7
---
8
8
9
9
# Update policy overview
@@ -73,6 +73,7 @@ If the update policy is defined on the target table, multiple queries can run on
73
73
* It can't access external data or external tables, with the following exception:
74
74
* The query *can* reference an accelerated external table using the [`external_table()` function](../query/external-table-function.md), provided that:
75
75
* The external table has a [query acceleration policy](query-acceleration-policy.md) enabled with a `Hot` period that covers all data (currently `Hot` >= 100 years).
76
+
* Authorization to access the external table is handled automatically through the update policy's `OwnerPrincipalDetails` property.
76
77
* It can't make callouts (by using a plugin).
77
78
78
79
* The query doesn't have read access to tables that have the [RestrictedViewAccess policy](restricted-view-access-policy.md) enabled.
@@ -115,7 +116,7 @@ Each such object is represented as a JSON property bag, with the following prope
115
116
|Property |Type | Description |
116
117
|---------|---------|----------------|
117
118
|IsEnabled |`bool`|States if update policy is *true* - enabled, or *false* - disabled|
118
-
|Source |`string`|Name of the table that triggers invocation of the update policy. |
119
+
|Source |`string`|Name of the table that triggers invocation of the update policy. This can be a native table, or, in preview, an external table of kind `delta` that has a [query acceleration policy](query-acceleration-policy.md) enabled. For more information, see [Update policy over external delta tables](#update-policy-over-external-delta-tables-preview). |
119
120
|SourceIsWildCard |`bool`|If *true*, the `Source` property can be a wildcard pattern. See [Update policy with source table wildcard pattern](#update-policy-with-source-table-wildcard-pattern)|
120
121
|Query |`string`|A query used to produce data for the update. |
121
122
|IsTransactional |`bool`|States if the update policy is transactional or not, default is *false*. If the policy is transactional and the update policy fails, the source table isn't updated. |
@@ -128,12 +129,12 @@ Each such object is represented as a JSON property bag, with the following prope
128
129
|Property |Type |Description |
129
130
|---------|---------|----------------|
130
131
|IsEnabled |`bool`|States if update policy is *true* - enabled, or *false* - disabled|
131
-
|Source |`string`|Name of the table that triggers invocation of the update policy |
132
+
|Source |`string`|Name of the table that triggers invocation of the update policy. This can be a native table, or, in preview, an external table of kind `delta` that has a [query acceleration policy](query-acceleration-policy.md) enabled. For more information, see [Update policy over external delta tables](#update-policy-over-external-delta-tables-preview).|
132
133
|SourceIsWildCard |`bool`|If *true*, the `Source` property can be a wildcard pattern. |
133
134
|Query |`string`|A query used to produce data for the update |
134
135
|IsTransactional |`bool`|States if the update policy is transactional or not, default is *false*. If the policy is transactional and the update policy fails, the source table isn't updated. |
135
136
|PropagateIngestionProperties |`bool`|States if properties specified during ingestion to the source table, such as [extent tags](extent-tags.md) and creation time, apply to the target table. |
136
-
|OwnerPrincipalDetails |`object`| A system-populated, read-only property. Contains the principal details of the user who sets or alters the update policy, used for authorization when the update policy query references external tables. This property is automatically set by the system and can't be modified manually. |
137
+
|OwnerPrincipalDetails |`object`| A system-populated, read-only property. Contains the principal details of the user who sets or alters the update policy. This principal is used for authorization when the update policy query references external tables, and, in preview, to run the update policy asynchronously when `Source` is an external delta table. This property is automatically set by the system and can't be modified manually. |
137
138
138
139
::: moniker-end
139
140
@@ -145,6 +146,163 @@ Each such object is represented as a JSON property bag, with the following prope
145
146
> Cascading updates are allowed, for example from table A, to table B, to table C.
146
147
> However, if update policies are defined in a circular manner, this is detected at runtime, and the chain of updates is cut. Data is ingested only once to each table in the chain.
147
148
149
+
::: moniker range="azure-data-explorer"
150
+
151
+
## Update policy over external delta tables (preview)
152
+
153
+
> [!NOTE]
154
+
> This capability is in preview.
155
+
156
+
In addition to a native table, the `Source` of an update policy can be an external table, provided that:
157
+
158
+
* The external table is of kind `delta`.
159
+
* The external table has a [query acceleration policy](query-acceleration-policy.md) enabled.
160
+
161
+
This capability lets you automatically ingest and transform new data from an external delta table into a native target table, without manual orchestration.
162
+
163
+
### Example
164
+
165
+
The following command configures `TargetTable` to ingest new rows from `ExternalDeltaTable`:
* The update policy's `IsTransactional` property must be *false*. Transactional update policies aren't supported when the source is an external table.
185
+
* The update policy query can't reference other external tables.
186
+
* Standard update policy requirements and limitations still apply, such as the source and target table being in the same database, and schema compatibility between the query results and the target table.
187
+
* External tables that use impersonation authentication, or that have a [row level security policy](row-level-security-policy.md) enabled, aren't currently supported as an update policy source.
188
+
189
+
### Processing behavior
190
+
191
+
Unlike update policies over native tables, which run synchronously as part of ingestion, update policies over external delta tables run asynchronously on a periodic basis.
192
+
193
+
> [!IMPORTANT]
194
+
> The update policy processes data-changing `Add` actions in the Delta transaction log and ignores `Remove` actions. As a result, rows are never removed or modified in the target table.
195
+
196
+
This behavior differs from update policies over native tables, where a [`.set-or-replace`](../management/data-ingestion/ingest-from-query.md) command on the source table can replace or remove data in derived target tables.
197
+
198
+
| Delta operation | Effect on the target table |
199
+
|---|---|
200
+
| Add new data | Inserts the new rows. |
201
+
| Update existing data | Inserts the updated rows. The previous rows aren't removed. |
202
+
| Delete data | Takes no action. The deleted rows remain in the target table. |
203
+
204
+
> [!NOTE]
205
+
> For best results, enable deletion vectors on the source delta table. Without deletion vectors, partial delete or update operations on the source delta table might result in duplicate rows in the target table.
206
+
207
+
### Querying the target table
208
+
209
+
Querying the target table directly always returns up-to-date results by combining already-processed data with data from delta table versions that haven't been processed yet.
210
+
211
+
To query only the already-processed data, for better performance at the expense of freshness, use the `materialized_table()` function:
212
+
213
+
```kusto
214
+
materialized_table("TargetTableName")
215
+
```
216
+
217
+
### Error handling
218
+
219
+
* If the update policy encounters a permanent error, such as the external table becoming inaccessible or a schema mismatch, for seven consecutive days, the update policy is automatically disabled.
220
+
221
+
### Cascading update policies
222
+
223
+
You can define an update policy on the target table populated by an update policy over an external delta table. This second update policy behaves like a regular, synchronous update policy over a native table. The delta table-specific behavior described in this section applies only to the first hop, from the external delta table to the native target table.
224
+
225
+
::: moniker-end
226
+
::: moniker range="microsoft-fabric"
227
+
228
+
## Update policy over external delta tables (preview)
229
+
230
+
> [!NOTE]
231
+
> This capability is in preview.
232
+
233
+
In addition to a native table, the `Source` of an update policy can be an external table, provided that:
234
+
235
+
* The external table is of kind `delta`, such as a [OneLake shortcut](/fabric/real-time-intelligence/onelake-shortcuts) to a delta table.
236
+
* The external table has a [query acceleration policy](query-acceleration-policy.md) enabled.
237
+
238
+
This capability lets you automatically ingest and transform new data from an external delta table into a native target table, without manual orchestration.
239
+
240
+
### Example
241
+
242
+
The following command configures `TargetTable` to ingest new rows from `ExternalDeltaTable`:
* The update policy's `IsTransactional` property must be *false*. Transactional update policies aren't supported when the source is an external table.
262
+
* The update policy query can't reference other external tables.
263
+
* Standard update policy requirements and limitations still apply, such as the source and target table being in the same database, and schema compatibility between the query results and the target table.
264
+
* External tables that have a [row level security policy](row-level-security-policy.md) enabled aren't currently supported as an update policy source.
265
+
266
+
### Processing behavior
267
+
268
+
Unlike update policies over native tables, which run synchronously as part of ingestion, update policies over external delta tables run asynchronously on a periodic basis. The command runs on behalf of the principal in the update policy's `OwnerPrincipalDetails` property, which is populated automatically when the update policy is created or altered. Processing latency is comparable to other periodic processes, such as continuous export or materialized views.
269
+
270
+
> [!IMPORTANT]
271
+
> The update policy processes data-changing `Add` actions in the Delta transaction log and ignores `Remove` actions. As a result, rows are never removed or modified in the target table.
272
+
273
+
This behavior differs from update policies over native tables, where a [`.set-or-replace`](../management/data-ingestion/ingest-from-query.md) command on the source table can replace or remove data in derived target tables. Because deletions on the external delta table source are always ignored, this data-loss scenario doesn't apply when the source is an external delta table: the target table only ever accumulates new data.
274
+
275
+
| Delta operation | Effect on the target table |
276
+
|---|---|
277
+
| Add new data | Inserts the new rows. |
278
+
| Update existing data | Inserts the updated rows. The previous rows aren't removed. |
279
+
| Delete data | Takes no action. The deleted rows remain in the target table. |
280
+
281
+
> [!NOTE]
282
+
> For best results, enable deletion vectors on the source delta table. Without deletion vectors, partial delete or update operations on the source delta table might result in duplicate rows in the target table.
283
+
284
+
### Querying the target table
285
+
286
+
Similar to [materialized views](materialized-views/materialized-view-overview.md), querying the target table directly always returns up-to-date results by combining already-processed data with data from delta table versions that haven't been processed yet.
287
+
288
+
To query only the already-processed data, for better performance at the expense of freshness, use the `materialized_table()` function:
289
+
290
+
```kusto
291
+
materialized_table("TargetTableName")
292
+
```
293
+
294
+
### Error handling
295
+
296
+
* If the update policy encounters a permanent error, such as the external table becoming inaccessible or a schema mismatch, for seven consecutive days, the update policy is automatically disabled.
297
+
* If a breaking change occurs on the source delta table, such as a partition column change, the update policy is automatically paused. You must resolve the issue and manually re-enable the update policy.
298
+
* If the principal in `OwnerPrincipalDetails` no longer has access to the external table, the update policy fails until it's re-altered by a principal with sufficient permissions.
299
+
300
+
### Cascading update policies
301
+
302
+
You can define an update policy on the target table populated by an update policy over an external delta table. This second update policy behaves like a regular, synchronous update policy over a native table. The delta table-specific behavior described in this section applies only to the first hop, from the external delta table to the native target table.
0 commit comments