-
Notifications
You must be signed in to change notification settings - Fork 17
/
TestSpecification
220 lines (220 loc) · 7.82 KB
/
TestSpecification
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
{
"config_schema_json": {
"$schema": "http://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/estuary/connectors/materialize-databricks/config",
"properties": {
"address": {
"type": "string",
"title": "Address",
"description": "Host and port of the SQL warehouse (in the form of host[:port]). Port 443 is used as the default if no specific port is provided.",
"order": 0
},
"http_path": {
"type": "string",
"title": "HTTP path",
"description": "HTTP path of your SQL warehouse",
"order": 1
},
"catalog_name": {
"type": "string",
"title": "Catalog Name",
"description": "Name of your Unity Catalog.",
"order": 2
},
"schema_name": {
"type": "string",
"title": "Schema Name",
"description": "Default schema to materialize to",
"default": "default",
"order": 3
},
"hardDelete": {
"type": "boolean",
"title": "Hard Delete",
"description": "If this option is enabled items deleted in the source will also be deleted from the destination. By default is disabled and _meta/op in the destination will signify whether rows have been deleted (soft-delete).",
"default": false,
"order": 4
},
"credentials": {
"oneOf": [
{
"properties": {
"auth_type": {
"type": "string",
"const": "PAT",
"default": "PAT"
},
"personal_access_token": {
"type": "string",
"title": "Personal Access Token",
"description": "Personal Access Token,description=Your personal access token for accessing the SQL warehouse",
"secret": true
}
},
"required": [
"auth_type",
"personal_access_token"
],
"title": "Personal Access Token"
}
],
"type": "object",
"title": "Authentication",
"default": {
"auth_type": "PAT"
},
"discriminator": {
"propertyName": "auth_type"
},
"order": 5
},
"syncSchedule": {
"properties": {
"syncFrequency": {
"type": "string",
"enum": [
"0s",
"30s",
"5m",
"15m",
"30m",
"1h",
"2h",
"4h"
],
"title": "Sync Frequency",
"description": "Frequency at which transactions are executed when the materialization is fully caught up and streaming changes. May be enabled only for certain time periods and days of the week if configured below; otherwise it is effective 24/7. Defaults to 30 minutes if unset.",
"order": 0
},
"timezone": {
"type": "string",
"title": "Timezone",
"description": "Timezone applicable to sync time windows and active days. Must be a valid IANA time zone name or +HH:MM offset.",
"order": 1
},
"fastSyncStartTime": {
"type": "string",
"title": "Fast Sync Start Time",
"description": "Time of day that transactions begin executing at the configured Sync Frequency. Prior to this time transactions will be executed more slowly. Must be in the form of '09:00'.",
"order": 2,
"pattern": "^(0?[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$"
},
"fastSyncStopTime": {
"type": "string",
"title": "Fast Sync Stop Time",
"description": "Time of day that transactions stop executing at the configured Sync Frequency. After this time transactions will be executed more slowly. Must be in the form of '17:00'.",
"order": 3,
"pattern": "^(0?[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$"
},
"fastSyncEnabledDays": {
"type": "string",
"title": "Fast Sync Enabled Days",
"description": "Days of the week that the configured Sync Frequency is active. On days that are not enabled, transactions will be executed more slowly for the entire day. Examples: 'M-F' (Monday through Friday, inclusive), 'M,W,F' (Monday, Wednesday, and Friday), 'Su-T,Th-S' (Sunday through Tuesday, inclusive; Thursday through Saturday, inclusive). All days are enabled if unset.",
"order": 4
}
},
"additionalProperties": false,
"type": "object",
"title": "Sync Schedule",
"description": "Configure schedule of transactions for the materialization."
},
"dbt_job_trigger": {
"properties": {
"job_id": {
"type": "string",
"title": "Job ID",
"description": "dbt job ID"
},
"account_id": {
"type": "string",
"title": "Account ID",
"description": "dbt account ID"
},
"access_url": {
"type": "string",
"title": "Access URL",
"description": "dbt access URL can be found in your Account Settings. See go.estuary.dev/dbt-cloud-trigger",
"pattern": "^https://.+$"
},
"api_key": {
"type": "string",
"title": "API Key",
"description": "dbt API Key",
"secret": true
},
"cause": {
"type": "string",
"title": "Cause Message",
"description": "You can set a custom 'cause' message for the job trigger. Defaults to 'Estuary Flow'."
},
"mode": {
"type": "string",
"enum": [
"skip",
"replace",
"ignore"
],
"title": "Job Trigger Mode",
"description": "Specifies how should already-running jobs be treated. Defaults to 'skip' which skips the trigger if a job is already running; 'replace' cancels the running job and runs a new one; while 'ignore' triggers a new job regardless of existing jobs.",
"default": "skip"
},
"interval": {
"type": "string",
"title": "Minimum Run Interval",
"description": "Minimum time between dbt job triggers. This interval is only triggered if data has been materialized by your task.",
"default": "30m"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"job_id",
"account_id",
"api_key"
],
"title": "dbt Cloud Job Trigger",
"description": "Trigger a dbt Job when new data is available"
}
},
"type": "object",
"required": [
"address",
"http_path",
"catalog_name",
"schema_name",
"credentials"
],
"title": "SQL Connection"
},
"resource_config_schema_json": {
"$schema": "http://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/estuary/connectors/materialize-databricks/table-config",
"properties": {
"table": {
"type": "string",
"title": "Table",
"description": "Name of the table",
"x-collection-name": true
},
"schema": {
"type": "string",
"title": "Schema",
"description": "Schema where the table resides",
"x-schema-name": true
},
"delta_updates": {
"type": "boolean",
"title": "Delta Update",
"description": "Should updates to this table be done via delta updates. Default is false.",
"default": false,
"x-delta-updates": true
}
},
"type": "object",
"required": [
"table"
],
"title": "SQL Table"
},
"documentation_url": "https://go.estuary.dev/materialize-databricks"
}