Skip to content

Commit

Permalink
[core-api][experimental] get_asset_provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenKephart committed Dec 23, 2024
1 parent 675e3ca commit 1d7933d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import AbstractSet, Any, Iterator, Mapping, Optional, Sequence

import dagster._check as check
from dagster._annotations import deprecated, experimental, public
from dagster._annotations import deprecated, public
from dagster._core.definitions.asset_check_spec import AssetCheckKey
from dagster._core.definitions.assets import AssetsDefinition
from dagster._core.definitions.data_version import DataProvenance, DataVersion
Expand Down Expand Up @@ -557,7 +557,6 @@ def selected_asset_check_keys(self) -> AbstractSet[AssetCheckKey]:
#### data lineage related

@public
@experimental
@_copy_docs_from_op_execution_context
def get_asset_provenance(self, asset_key: AssetKey) -> Optional[DataProvenance]:
return self.op_execution_context.get_asset_provenance(asset_key=asset_key)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import AbstractSet, Any, Dict, Iterator, List, Mapping, Optional, Sequence, cast

import dagster._check as check
from dagster._annotations import deprecated, experimental, public
from dagster._annotations import deprecated, public
from dagster._core.definitions.asset_check_spec import AssetCheckKey
from dagster._core.definitions.assets import AssetsDefinition
from dagster._core.definitions.data_version import (
Expand Down Expand Up @@ -1210,7 +1210,6 @@ def self_dependent_asset(context: AssetExecutionContext, self_dependent_asset):
return self._step_execution_context.asset_partitions_time_window_for_input(input_name)

@public
@experimental
def get_asset_provenance(self, asset_key: AssetKey) -> Optional[DataProvenance]:
"""Return the provenance information for the most recent materialization of an asset.
Expand Down

0 comments on commit 1d7933d

Please sign in to comment.