Skip to content

Commit 2008352

Browse files
authored
Update data-graph.md
Formating fixes
1 parent 8e2789f commit 2008352

File tree

1 file changed

+29
-31
lines changed

1 file changed

+29
-31
lines changed

src/unify/data-graph/data-graph.md

Lines changed: 29 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -123,25 +123,25 @@ Example:
123123
```python
124124

125125
data_graph {
126-
entity "account-entity" {
127-
name = "account"
128-
table_ref = "PRODUCTION.CUST.ACCOUNT"
129-
primary_key = "id"
130-
enrichment_enabled = true
131-
}
132-
133-
entity "cart-entity" {
134-
name = "cart"
135-
table_ref = "PRODUCTION.CUST.CART"
136-
primary_key = "id"
137-
}
138-
139-
# Define a profile entity
140-
profile {
141-
profile_folder = "PRODUCTION.segment"
142-
type = segment:materialized
143-
144-
}
126+
entity "account-entity" {
127+
name = "account"
128+
table_ref = "PRODUCTION.CUST.ACCOUNT"
129+
primary_key = "id"
130+
enrichment_enabled = true
131+
}
132+
133+
entity "cart-entity" {
134+
name = "cart"
135+
table_ref = "PRODUCTION.CUST.CART"
136+
primary_key = "id"
137+
}
138+
139+
# Define a profile entity
140+
profile {
141+
profile_folder = "PRODUCTION.segment"
142+
type = segment:materialized
143+
144+
}
145145
}
146146

147147

@@ -170,7 +170,7 @@ Example:
170170

171171
```python
172172
data_graph {
173-
#define entities
173+
#define entities
174174
entity "account-entity" {
175175
name = "account"
176176
table_ref = "PRODUCTION.CUST.ACCOUNT"
@@ -184,7 +184,7 @@ data_graph {
184184
primary_key = "id"
185185
}
186186

187-
#define profile
187+
#define profile
188188
profile {
189189
profile_folder = "PRODUCTION.segment"
190190
type = segment:materialized
@@ -210,10 +210,10 @@ Example:
210210

211211
data_graph {
212212
#define entities
213+
....
214+
213215
#define profile
214-
215216
profile {
216-
217217
profile_folder = "PRODUCTION.segment"
218218
type = segment:materialized
219219

@@ -245,22 +245,20 @@ Example:
245245
```py
246246
data_graph {
247247
#define entities
248-
249248
entity "account-entity" {
250-
name = "account"
251-
table_ref = "PRODUCTION.CUST.ACCOUNT"
252-
primary_key = "id"
253-
enrichment_enabled = true
254-
}
249+
name = "account"
250+
table_ref = "PRODUCTION.CUST.ACCOUNT"
251+
primary_key = "id"
252+
enrichment_enabled = true
253+
}
255254

256255
entity "cart-entity" {
257256
name = "cart"
258257
table_ref = "PRODUCTION.CUST.CART"
259258
primary_key = "id"
260259
}
261-
262-
#define profile
263260

261+
#define profile
264262
profile {
265263
profile_folder = "PRODUCTION.segment"
266264
type = segment:materialized

0 commit comments

Comments
 (0)