forked from transferwise/pipelinewise-transform-field
-
Notifications
You must be signed in to change notification settings - Fork 1
/
sample_config.json
31 lines (31 loc) · 884 Bytes
/
sample_config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
"transformations": [
{
"field_id": "password_hash",
"tap_stream_name": "stream-id-sent-by-the-tap",
"type": "MASK-HIDDEN"
},
{
"field_id": "salt",
"tap_stream_name": "stream-id-sent-by-the-tap",
"type": "HASH"
},
{
"field_id": "value",
"tap_stream_name": "stream-id-sent-by-the-tap",
"type": "SET-NULL",
"when": [
{"column": "string_column_1", "equals": "Property" },
{"column": "numeric_column", "equals": 200 },
{"column": "string_column_2", "regex_match": "sensitive.*PII" },
{"column": "json_column", "field_path": "metadata/comment", "regex_match": "sensitive" }
]
},
{
"field_id": "metadata",
"tap_stream_name": "stream-id-sent-by-the-tap",
"type": "MASK-HIDDEN",
"field_paths": ["user/address", "user/zip_code"]
}
]
}