Skip to content

Commit

Permalink
Merge pull request #31 from YotpoLtd/KOALA-726-support-non-aggregativ…
Browse files Browse the repository at this point in the history
…e-measures

support non aggregative measures
  • Loading branch information
dkruh1 authored Nov 16, 2023
2 parents 3325a67 + 311ad0d commit 77d6f3e
Show file tree
Hide file tree
Showing 69 changed files with 2,157 additions and 108 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,5 @@ dmypy.json

# Cython debug symbols
cython_debug/

lookml
154 changes: 154 additions & 0 deletions tests/resources/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
analysis-paths:
- analyses
clean-targets:
- target
- dbt_modules
- dbt_packages
config-version: 2
dispatch:
- macro_namespace: spark_utils
search_order:
- yoda
- spark_utils
- macro_namespace: dbt_utils
search_order:
- yoda
- spark_utils
- dbt_utils
docs-paths:
- docs
- models
macro-paths:
- macros
model-paths:
- models
models:
+on_schema_change: append_new_columns
+quote_columns: true
yoda:
+file_format: delta
+post-hook: '{{ dbt_data_applications.recreate_cicd_views() }}'
analytics:
+tags: analytics
cs:
+tags: analytics
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
delivery:
+tags: analytics
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
email:
+tags: analytics
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
finance:
+tags: analytics
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
gtm:
+tags: analytics
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
loyalty:
+tags: analytics
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
marketing:
+tags: analytics
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
new_revenue:
+tags: analytics
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
partners:
+tags: analytics
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
platform:
+tags: analytics
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
salesforce:
+tags: analytics
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
sms:
+tags: analytics
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
subscriptions:
+tags: analytics
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
synergies:
+tags: analytics
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
ugc:
+tags: analytics
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
utils:
+tags: analytics
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
communication:
+tags: communication
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
email:
+tags: email
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
infra:
+tags: infra
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
loyalty:
+tags: loyalty
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
north_bound:
+tags: north_bound
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
platform:
+tags: platform
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
sms:
+tags: sms
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
source: null
staging: null
subscriptions:
+tags: subscriptions
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
support:
+tags: support
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
ugc:
+tags: ugc
marts:
+materialized: '{{ ''table'' if target.name == ''prod'' else ''view'' }}'
name: yoda
profile: default
seed-paths:
- data
- unit_test_mocks
seeds:
+file_format: delta
snapshot-paths:
- snapshots
target-path: target
test-paths:
- tests
vars:
dbt_command: '{{ env_var(''CURRENT_DBT_COMMAND'') }}'
dbt_materialize_table: 'False'
version: 2.0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: email__daily_total_email_campaigns {
description: "Email Marketing total campaigns per day in utc time"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: email__daily_delivered_emails_by_source_name {
description: "dailey delivered email by source name in utc"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: email__email_events_per_source_id_and_isp {
description: "email events per source id and isp"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: email__email_events_per_source_id_and_ip_pool {
description: "email events per source id and pool id"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: email__email_events_source_id_per_isp_ip_pool_eng_level {
description: "email events per source id and pool id isp and eng level"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: email__email_failed_rejected_reasons {
description: "email failures and rejexted raeson"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__aws_cost_overview {
description: "infra__aws_cost_overview"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__contracts_burn_estimations {
description: "infra__contracts_burn_estimations"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__vendor_contracts {
description: "infra__vendor_contracts"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__contracts_burn_status {
description: "infra__contracts_burn_status"
}
6 changes: 6 additions & 0 deletions tests/resources/expected_lookml/infra__cost_budget.model.lkml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__cost_budget {
description: "infra__cost_budget"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra_stg__team_budget {
description: "infra__cost_budget_history"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__databricks_costs {
description: "Databricks and aws combined costs for analysis"
}
6 changes: 6 additions & 0 deletions tests/resources/expected_lookml/infra__ec2_cost.model.lkml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__ec2_cost {
description: "infra__ec2_cost"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__elasticcache_cost {
description: "infra__elasticcache_cost"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__elasticsearch_cost {
description: "infra__elasticsearch_cost"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__git_actions_runs {
description: "<ENTER EXPOSURE DESCRIPTION>"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__groups_and_teams {
description: "infra__groups_and_teams"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__infra_metrics {
description: "a looker expusre over infra metricsw"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__kubernetes_cost {
description: "infra__kubernetes_cost"
}
6 changes: 6 additions & 0 deletions tests/resources/expected_lookml/infra__msk_cost.model.lkml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__msk_cost {
description: "infra__msk_cost"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__opensearch_cost {
description: "infra__opensearch_cost"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__opsgenie_alerts {
description: "OpsGenie Alerts"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__opsgenie_incidents {
description: "OpsGenie Incidents"
}
6 changes: 6 additions & 0 deletions tests/resources/expected_lookml/infra__rds_cost.model.lkml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__rds_cost {
description: "infra__rds_cost"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__rivery_contract_statistics {
description: "Rivery Contract Statistics"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__rivery_daily_usage {
description: "Rivery Usage model"
}
6 changes: 6 additions & 0 deletions tests/resources/expected_lookml/infra__s3_cost.model.lkml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__s3_cost {
description: "infra__s3_cost"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "yoda"
include: "views/*"

explore: infra__s3_prefix_aggregations {
description: "infra__s3_prefix_aggregations"
}
Loading

0 comments on commit 77d6f3e

Please sign in to comment.