forked from getdozer/dozer-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexp3-config.yaml
63 lines (49 loc) · 1.11 KB
/
exp3-config.yaml
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
version: 1
app_name: imdb-analytics
connections:
- config: !MySQL
url: mysql://root:1234@localhost:3306/IMDB
name: mysql_data
sources:
- name: akas
table_name: akas
connection: mysql_data
- name: crew
table_name: crew
connection: mysql_data
- name: episodes
table_name: episodes
connection: mysql_data
- name: people
table_name: people
connection: mysql_data
- name: ratings
table_name: ratings
connection: mysql_data
- name: titles
table_name: titles
connection: mysql_data
sql: |
with acting_crew as (
select person_id, category
from crew
where category = 'actor' or category = 'actress'
),
action_titles as (
select title_id
from titles
where genres like '%Action%'
)
select p.name, r.category, count(1) as titles
into out_table
from people p
join acting_crew r on p.person_id = r.person_id
join action_titles a on a.title_id = r.title_id
group by p.name,r.category;
endpoints:
- name: endpoint1
path: /endpoint1
table_name: out_table
cache_max_map_size: 16106127360 # 15 GB
telemetry:
metrics: !Prometheus