Skip to content

Commit dbcc03f

Browse files
Learn Build Service GitHub AppLearn Build Service GitHub App
authored andcommitted
Merging changes synced from https://github.com/MicrosoftDocs/dataexplorer-docs-pr (branch live)
2 parents d90970b + ba48a32 commit dbcc03f

3 files changed

Lines changed: 168 additions & 4 deletions

File tree

‎data-explorer/kusto-tocs/management/toc.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,9 @@ items:
602602
- name: Query acceleration policy
603603
href: /kusto/management/query-acceleration-policy?view=azure-data-explorer&preserve-view=true
604604
displayName: external table, delta table
605+
- name: Update policy over external delta tables
606+
href: /kusto/management/update-policy?view=azure-data-explorer&preserve-view=true#update-policy-over-external-delta-tables-preview
607+
displayName: external table, delta table
605608
- name: .alter query acceleration policy command
606609
href: /kusto/management/alter-query-acceleration-policy-command?view=azure-data-explorer&preserve-view=true
607610
displayName: external table, delta table

‎data-explorer/kusto/management/toc.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,9 @@ items:
601601
- name: Query acceleration policy
602602
href: query-acceleration-policy.md
603603
displayName: external table, delta table
604+
- name: Update policy over external delta tables
605+
href: update-policy.md#update-policy-over-external-delta-tables-preview
606+
displayName: external table, delta table
604607
- name: Query acceleration troubleshooting guide
605608
href: query-acceleration-troubleshooting-guide.md
606609
displayName: external table, delta table

‎data-explorer/kusto/management/update-policy.md‎

Lines changed: 162 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Update policy overview
33
description: Learn how to trigger an update policy to add data to a source table.
44
ms.reviewer: orspodek
55
ms.topic: reference
6-
ms.date: 06/01/2026
6+
ms.date: 09/06/2026
77
---
88

99
# Update policy overview
@@ -73,6 +73,7 @@ If the update policy is defined on the target table, multiple queries can run on
7373
* It can't access external data or external tables, with the following exception:
7474
* The query *can* reference an accelerated external table using the [`external_table()` function](../query/external-table-function.md), provided that:
7575
* 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.
7677
* It can't make callouts (by using a plugin).
7778

7879
* 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
115116
|Property |Type | Description |
116117
|---------|---------|----------------|
117118
|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). |
119120
|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) |
120121
|Query |`string` |A query used to produce data for the update. |
121122
|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
128129
|Property |Type |Description |
129130
|---------|---------|----------------|
130131
|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). |
132133
|SourceIsWildCard |`bool` |If *true*, the `Source` property can be a wildcard pattern. |
133134
|Query |`string` |A query used to produce data for the update |
134135
|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. |
135136
|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. |
137138

138139
::: moniker-end
139140

@@ -145,6 +146,163 @@ Each such object is represented as a JSON property bag, with the following prope
145146
> Cascading updates are allowed, for example from table A, to table B, to table C.
146147
> 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.
147148
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`:
166+
167+
````kusto
168+
.alter table TargetTable policy update
169+
```
170+
[
171+
{
172+
"IsEnabled": true,
173+
"Source": "ExternalDeltaTable",
174+
"Query": "ExternalDeltaTable | project Timestamp, Value",
175+
"IsTransactional": false,
176+
"PropagateIngestionProperties": false
177+
}
178+
]
179+
```
180+
````
181+
182+
### Requirements and limitations
183+
184+
* 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`:
243+
244+
````kusto
245+
.alter table TargetTable policy update
246+
```
247+
[
248+
{
249+
"IsEnabled": true,
250+
"Source": "ExternalDeltaTable",
251+
"Query": "ExternalDeltaTable | project Timestamp, Value",
252+
"IsTransactional": false,
253+
"PropagateIngestionProperties": false
254+
}
255+
]
256+
```
257+
````
258+
259+
### Requirements and limitations
260+
261+
* 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.
303+
304+
::: moniker-end
305+
148306
## Management commands
149307

150308
Update policy management commands include:

0 commit comments

Comments
 (0)