-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues with duckdb local run (#2493)
* Fix issues with duckdb local run * Add additional test * Improve test docs
- Loading branch information
Showing
5 changed files
with
116 additions
and
7 deletions.
There are no files selected for viewing
94 changes: 94 additions & 0 deletions
94
warehouse/metrics_mesh/tests/test_developer_active_days_over_window.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
test_developer_active_days_to_artifact_over_60_day_window_with_cumulative_active_days: | ||
# Tests rolling count of active days when the user is active 4 of the 5 days | ||
# in the test interval | ||
gateway: local | ||
model: metrics.developer_active_days_to_artifact_over_60_day_window | ||
vars: | ||
start: 2024-01-01 | ||
end: 2024-01-05 | ||
inputs: | ||
metrics.events_daily_to_artifact: | ||
rows: | ||
- to_artifact_id: repo_0 | ||
from_artifact_id: dev_0 | ||
event_source: SOURCE_PROVIDER | ||
event_type: COMMIT_CODE | ||
bucket_day: 2024-01-01 | ||
amount: 1 | ||
- to_artifact_id: repo_0 | ||
from_artifact_id: dev_0 | ||
event_source: SOURCE_PROVIDER | ||
event_type: COMMIT_CODE | ||
bucket_day: 2024-01-02 | ||
amount: 10 | ||
- to_artifact_id: repo_0 | ||
from_artifact_id: dev_0 | ||
event_source: SOURCE_PROVIDER | ||
event_type: COMMIT_CODE | ||
bucket_day: 2024-01-03 | ||
amount: 12 | ||
- to_artifact_id: repo_0 | ||
from_artifact_id: dev_0 | ||
event_source: SOURCE_PROVIDER | ||
event_type: COMMIT_CODE | ||
bucket_day: 2024-01-04 | ||
amount: 20 | ||
outputs: | ||
partial: true | ||
query: | ||
partial: true | ||
rows: | ||
- to_artifact_id: repo_0 | ||
from_artifact_id: dev_0 | ||
metrics_sample_date: 2024-01-01 | ||
amount: 1 | ||
- to_artifact_id: repo_0 | ||
from_artifact_id: dev_0 | ||
metrics_sample_date: 2024-01-02 | ||
amount: 2 | ||
- to_artifact_id: repo_0 | ||
from_artifact_id: dev_0 | ||
metrics_sample_date: 2024-01-03 | ||
amount: 3 | ||
- to_artifact_id: repo_0 | ||
from_artifact_id: dev_0 | ||
metrics_sample_date: 2024-01-04 | ||
amount: 4 | ||
- to_artifact_id: repo_0 | ||
from_artifact_id: dev_0 | ||
metrics_sample_date: 2024-01-05 | ||
amount: 4 | ||
|
||
test_developer_active_days_to_artifact_over_60_day_window_with_1_active_day: | ||
# Tests rolling count of active days when the user is active 1 in the test interval | ||
gateway: local | ||
model: metrics.developer_active_days_to_artifact_over_60_day_window | ||
vars: | ||
start: 2024-01-01 | ||
end: 2024-01-03 | ||
inputs: | ||
metrics.events_daily_to_artifact: | ||
rows: | ||
- to_artifact_id: repo_0 | ||
from_artifact_id: dev_0 | ||
event_source: SOURCE_PROVIDER | ||
event_type: COMMIT_CODE | ||
bucket_day: 2024-01-01 | ||
amount: 10 | ||
outputs: | ||
partial: true | ||
query: | ||
partial: true | ||
rows: | ||
- to_artifact_id: repo_0 | ||
from_artifact_id: dev_0 | ||
metrics_sample_date: 2024-01-01 | ||
amount: 1 | ||
- to_artifact_id: repo_0 | ||
from_artifact_id: dev_0 | ||
metrics_sample_date: 2024-01-02 | ||
amount: 1 | ||
- to_artifact_id: repo_0 | ||
from_artifact_id: dev_0 | ||
metrics_sample_date: 2024-01-03 | ||
amount: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
test_events_daily_to_artifact: | ||
gateway: local | ||
model: metrics.events_daily_to_artifact | ||
vars: | ||
start: 2024-01-01 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters