FailureInfo.write_delta#

FailureInfo.write_delta(
target: str | Path | deltalake.DeltaTable,
**kwargs: Any,
) None[source]#

Write the failure info to a delta lake table.

Writes the invalid rows along with additional boolean rule columns indicating which validation rules failed. Unlike invalid(), this includes columns for each rule, where False indicates the rule failed for that row.

Parameters:
  • target – The file path or DeltaTable to which to write the delta lake data.

  • kwargs – Additional keyword arguments passed directly to polars.write_delta().

Attention

Be aware that this method suffers from the same limitations as Schema.serialize().