Create policy overrides(创建策略覆盖(policy overrides))¶
In certain scenarios, you may want to stop the inheritance of deletion dates from upstream transactions and retain downstream data for longer periods. You may require this if, for example, successful aggregations or minimizations render datasets exempt from deletion requirements. For these use cases, Data Lifetime includes policy overrides. A policy override is a policy with the unique attribute of breaking the inheritance of deletion dates from upstream transactions.
Configure policy overrides¶
The sections below explain how to override the policy on a specific dataset. You must have the Data Governance Officer role to override a policy (with or without a superseding policy). To access this view, you must first navigate to the dataset preview.
From the dataset preview, navigate to the Details tab, then choose Lineage-aware retention policies From here, you can choose between two types of policy overrides: Override inherited policies, or Override without superseding policy
Override inherited policies¶
This option will override any policy that was previously applied to the datase, along with all downstream datasets. From the Select retention policy dropdown menu, choose a policy from a list of existing policies. Once you select a policy, the override will immediately apply. Note that if a downstream dataset is already subject to a different policy (if it acquired a policy through another lineage, for example), the policy change will not apply.

Override without superseding policy¶
If you choose to override without superseding the active policy, you will effectively remove any deletion dates for all transactions in the dataset, along with any downstream datasets.
If no superseding policy is specified, the transactions within the dataset that have the policy override may not have deletion dates.

中文翻译¶
创建策略覆盖(policy overrides)¶
在某些场景下,您可能希望停止继承上游事务的删除日期,并更长时间保留下游数据。例如,当成功的聚合或最小化操作使数据集免于删除要求时,您可能需要这样做。针对这些用例,数据生命周期(Data Lifetime)提供了策略覆盖(policy overrides)功能。策略覆盖是一种具有独特属性的策略,能够中断从上游事务继承删除日期的机制。
配置策略覆盖¶
以下章节将说明如何覆盖特定数据集上的策略。您必须拥有数据治理官(Data Governance Officer)角色才能覆盖策略(无论是否指定替代策略)。要访问此视图,您需要先导航至数据集预览(dataset preview)。
在数据集预览中,导航至详情(Details)选项卡,然后选择沿袭感知保留策略(Lineage-aware retention policies)。在此处,您可以选择两种策略覆盖类型:覆盖继承的策略(Override inherited policies),或覆盖但不指定替代策略(Override without superseding policy)
覆盖继承的策略¶
此选项将覆盖先前应用于该数据集及其所有下游数据集的任何策略。从选择保留策略(Select retention policy)下拉菜单中,从现有策略列表中选择一个策略。选择策略后,覆盖将立即生效。请注意,如果下游数据集已受其他策略约束(例如通过其他沿袭获得策略),则策略更改将不会生效。

覆盖但不指定替代策略¶
如果您选择覆盖但不指定替代当前活动策略,则实际上将移除数据集中所有事务以及所有下游数据集的删除日期。
如果未指定替代策略,则应用了策略覆盖的数据集内的事务可能不会包含删除日期。
