dlt.transformations.decorators
transformation
def transformation(func: Optional[AnyFun] = None,
name: TTableHintTemplate[str] = None,
table_name: str = None,
write_disposition: TWriteDisposition = None,
columns: TTableSchemaColumns = None,
primary_key: TColumnNames = None,
merge_key: TColumnNames = None,
schema_contract: TSchemaContract = None,
table_format: TTableFormat = None,
references: TTableReferenceParam = None,
selected: bool = True,
spec: Type[TransformationConfiguration] = None,
parallelized: bool = False,
section: Optional[TTableHintTemplate[str]] = None) -> Any
Decorator to mark a function as a transformation. Returns a DltTransformation object.