wiring.quarantine_path()
Return the path of the parquet file file_writer writes an asset’s invalid rows to.
Usage
wiring.quarantine_path(
key,
quarantine_dir,
partition_key=None,
)The layout matches UPathIOManager’s, so with quarantine_dir set to a manager’s base_dir, the file is beside the asset’s own file.
Parameters
key: dg.AssetKey-
The asset key of the asset whose rows failed validation, not the quarantine’s key.
quarantine_dir: UPath | Path | str-
Any path
UPathaccepts, such as a local directory ors3://bucket/prefix. Credentials for a remote path come from the environment. partition_key: str | None = None-
A
dg.MultiPartitionKeybecomes its dimension keys joined by/, in dimension-name order. Escaping a..and a leading/keeps the file underquarantine_dir.
Returns
<quarantine_dir>/<key part>/.../<name>_quarantine.parquet, or<quarantine_dir>/<key part>/.../<name>_quarantine/<partition>.parquetfor a partition. quarantine_path creates no parent directories.