S3KeySensorAdlsGen1OperatorTransformer¶
-
class
ditto.transformers.s3.
S3KeySensorAdlsGen1OperatorTransformer
(target_dag, defaults)[source]¶ Bases:
ditto.api.OperatorTransformer
Transforms a
S3KeySensor
into aAzureDataLakeStorageGen1WebHdfsSensor
- Parameters
target_dag¶ (
DAG
) – the target to which the transformed operators must be addeddefaults¶ (
TransformerDefaults
) – the default configuration for this transformer
-
transform
(src_operator, parent_fragment, upstream_fragments)[source]¶ You need to add the
adls_conn_id
to the source operator (or preferably DAG) for this to work. Theglob_path
for the ADLS sensor is coped from thebucket_key
of the s3 sensor, so make sure that is templatized for changing between s3:// and adls:// paths using config- Return type