-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcatalog.yml
117 lines (114 loc) · 3.48 KB
/
catalog.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
connectors:
pg_cdc:
options: |
'connector' = 'postgres-cdc',
'hostname' = 'postgres',
'port' = '5432',
'username' = 'postgres',
'password' = 'postgres',
'database-name' = 'postgres',
'schema-name' = 'public',
'decoding.plugin.name' = 'pgoutput'
catalogs:
paimon:
options: |
'type' = 'paimon',
'warehouse' = 'file:///opt/flink/paimon'
databases:
ods:
tables:
orders:
options: |
'changelog-producer' = 'input'
partition_by: "dd, hh"
schema: |
order_id STRING,
product_id STRING,
customer_id STRING,
purchase_timestamp TIMESTAMP_LTZ,
dd STRING,
hh INT,
pts as PROCTIME(),
ts as cast(purchase_timestamp as TIMESTAMP_LTZ(3)),
WATERMARK FOR ts AS ts - INTERVAL '5' SECOND,
PRIMARY KEY (order_id, dd, hh) NOT ENFORCED
products:
options: |
'changelog-producer' = 'input'
schema: |
product_id STRING,
product_name STRING,
sale_price INT,
product_rating DOUBLE,
ts TIMESTAMP_LTZ(3),
pts as PROCTIME(),
PRIMARY KEY (product_id) NOT ENFORCED
customers:
options: |
'changelog-producer' = 'input'
schema: |
customer_id STRING,
customer_name STRING,
ts TIMESTAMP_LTZ(3),
pts as PROCTIME(),
PRIMARY KEY (customer_id) NOT ENFORCED
dwd:
tables:
order_enriched:
options: |
'changelog-producer' = 'lookup',
'merge-engine' = 'partial-update',
'partial-update.ignore-delete' = 'true'
schema: |
order_id STRING,
product_id STRING,
customer_id STRING,
purchase_timestamp TIMESTAMP,
product_name STRING,
sale_price INT,
customer_name STRING,
PRIMARY KEY (order_id) NOT ENFORCED
dws:
tables:
product_sales_by_hh:
options: |
'changelog-producer' = 'lookup',
'merge-engine' = 'aggregation',
'fields.sales.aggregate-function' = 'sum'
schema: |
product_id STRING,
hh BIGINT,
sales INT,
PRIMARY KEY (product_id, hh) NOT ENFORCED
temporary_tables:
cdc_orders:
connector: pg_cdc
options: |
'table-name' = 'orders',
'slot.name' = 'orders'
schema: |
order_id STRING,
product_id STRING,
customer_id STRING,
purchase_timestamp TIMESTAMP_LTZ,
PRIMARY KEY (order_id) NOT ENFORCED
cdc_products:
connector: pg_cdc
options: |
'table-name' = 'products',
'slot.name' = 'products'
schema: |
product_id STRING,
product_name STRING,
sale_price INT,
product_rating DOUBLE,
ts TIMESTAMP_LTZ(3) METADATA FROM 'op_ts' VIRTUAL
cdc_customers:
connector: pg_cdc
options: |
'table-name' = 'customers',
'slot.name' = 'customers'
schema: |
customer_id STRING,
customer_name STRING,
ts TIMESTAMP_LTZ(3) METADATA FROM 'op_ts' VIRTUAL