forked from MeltanoLabs/meltano-map-transform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meltano.yml
73 lines (72 loc) · 1.91 KB
/
meltano.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: 1
default_environment: dev
send_anonymous_usage_stats: false
project_id: 33080f0b-2d0f-4fba-b7f1-727bbf080f91
plugins:
extractors:
- name: tap-csv
variant: meltanolabs
pip_url: git+https://github.com/MeltanoLabs/tap-csv.git
- name: tap-smoke-test
namespace: tap_smoke_test
pip_url: git+https://github.com/meltano/tap-smoke-test.git
executable: tap-smoke-test
capabilities:
- discover
- catalog
settings:
- name: schema_inference_record_count
kind: integer
- name: streams
kind: array
loaders:
- name: target-sqlite
variant: meltanolabs
pip_url: git+https://github.com/MeltanoLabs/target-sqlite.git
config:
batch_size: 200
database: output/$MELTANO_EXTRACTOR_NAMESPACE.db
mappers:
- name: meltano-map-transformer
pip_url: .
executable: meltano-map-transform
settings:
- name: stream_maps
kind: object
mappings:
- name: hash_email
config:
stream_maps:
customers:
id: id
email: # drop the PII field from RECORD and SCHEMA messages
email_domain: email.split('@')[-1]
email_hash: md5(config['hash_seed'] + email)
__else__: null
stream_map_config:
hash_seed: 01AWZh7A6DzGm6iJZZ2T
- name: whitelist
config:
stream_maps:
# Whitelist `id` and `description` fields, drop all others
animals:
id: id
description: description
__else__: __NULL__
environments:
- name: dev
config:
plugins:
extractors:
- name: tap-csv
config:
files:
- entity: customers
path: fixtures/customers.csv
keys: [id]
- name: tap-smoke-test
config:
schema_inference_record_count: 5
streams:
- stream_name: animals
input_filename: fixtures/animals-data.jsonl