Get transformation schema
- async AsyncCogniteClient.transformations.schema.retrieve(
- destination: TransformationDestination,
- conflict_mode: str | None = None,
Get expected schema for a transformation destination.
- Parameters:
destination (TransformationDestination) – destination for which the schema is requested.
conflict_mode (str | None) – conflict mode for which the schema is requested.
- Returns:
List of column descriptions
- Return type:
Example
Get the schema for a transformation producing assets:
>>> from cognite.client import CogniteClient >>> from cognite.client.data_classes import TransformationDestination >>> client = CogniteClient() >>> # async_client = AsyncCogniteClient() # another option >>> columns = client.transformations.schema.retrieve(destination = TransformationDestination.assets())