Transforms¶
Transforms sit between the source and the sink. Entities passed from a source to a sink, can optionally be passed through a chain of transforms before they are passed on to the sink. This makes it possible to reshape the entities on their way to the sink. Transforms can also be used to filter entities and construct new entities.
Transforms can be configured on a pipe by specifying the
“transform
” property. The field is optional, and can contain
either a transform configuration object or a list of them.
Prototype¶
The following JSON snippet shows the general form of a transform definition.
{
"type": "a-transform-type"
"comment": "This is a comment"
..
}
Properties¶
Property |
Type |
Description |
Default |
Req |
---|---|---|---|---|
|
String |
The type of the transform, the allowed types are described below |
Yes |
|
|
String or list of strings |
A human readable comment on the transform. |
||
|
Boolean |
Set to |
|
Note
You can use a DTL transform with the following snippet ["filter", ["neq", "_S._deleted", true]]
to prevent further transforms to be performed on entities marked as deleted. Should only be used on dataset sinks and where _id
is not rewritten.