File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ def test_valid_guardrail_cutoff_signs():
54
54
eppo_metrics_sync = EppoMetricsSync(directory = None)
55
55
eppo_metrics_sync.load_yaml(
56
56
path = test_yaml_dir + "/duplicated_fact_property_names.yaml")
57
-
57
+
58
58
with pytest.raises(ValueError, match = "Fact property names are not unique: device"):
59
59
eppo_metrics_sync.validate()"""
60
60
@@ -151,4 +151,4 @@ def test_first_value():
151
151
def test_valid_yaml ():
152
152
eppo_metrics_sync = EppoMetricsSync (directory = None )
153
153
eppo_metrics_sync .load_eppo_yaml (path = 'tests/yaml/valid/purchases.yaml' )
154
- eppo_metrics_sync .validate ()
154
+ eppo_metrics_sync .validate ()
Original file line number Diff line number Diff line change
1
+ fact_sources :
2
+ - name : upgrades_table
3
+ sql : select * from upgrades
4
+ timestamp_column : ts
5
+ entities :
6
+ - entity_name : user
7
+ column : user_id
8
+ facts :
9
+ - name : upgrades
10
+ metrics :
11
+ - name : Total Upgrades to Paid Plan
12
+ entity : User
13
+ type : Nonexistent
14
+ numerator :
15
+ fact_name : upgrades
16
+ operation : sum
Original file line number Diff line number Diff line change 1
1
fact_sources :
2
2
- name : Purchase
3
3
sql : |
4
- SELECT
4
+ SELECT
5
5
events.*
6
6
FROM customer_db.onboarding.events as events
7
7
WHERE event_type = 'Revenue'
@@ -30,6 +30,7 @@ metrics:
30
30
operation : distinct_entity
31
31
- name : AOV
32
32
entity : User
33
+ type : ratio
33
34
numerator :
34
35
fact_name : Purchase
35
36
operation : sum
You can’t perform that action at this time.
0 commit comments