forked from lightdash/dbt2looker
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from YotpoLtd/KOALA-726-support-non-aggregativ…
…e-measures support non aggregative measures
- Loading branch information
Showing
69 changed files
with
2,157 additions
and
108 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -136,3 +136,5 @@ dmypy.json | |
|
||
# Cython debug symbols | ||
cython_debug/ | ||
|
||
lookml |
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,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 |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/email__daily_total_email_campaigns.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: email__daily_total_email_campaigns { | ||
description: "Email Marketing total campaigns per day in utc time" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/email__daily_total_emails_by_source_name.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: email__daily_delivered_emails_by_source_name { | ||
description: "dailey delivered email by source name in utc" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/email__email_events_by_source_and_isp.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: email__email_events_per_source_id_and_isp { | ||
description: "email events per source id and isp" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/email__email_events_by_source_and_pool.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: email__email_events_per_source_id_and_ip_pool { | ||
description: "email events per source id and pool id" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/email__email_events_by_source_pool_isp_eng.model.lkml
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,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" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/email__email_failed_rejected_reasons.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: email__email_failed_rejected_reasons { | ||
description: "email failures and rejexted raeson" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/infra__aws_cost_overview.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__aws_cost_overview { | ||
description: "infra__aws_cost_overview" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/infra__contract_estimations.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__contracts_burn_estimations { | ||
description: "infra__contracts_burn_estimations" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/infra__contract_info.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__vendor_contracts { | ||
description: "infra__vendor_contracts" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/infra__contract_status.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__contracts_burn_status { | ||
description: "infra__contracts_burn_status" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/infra__cost_budget.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__cost_budget { | ||
description: "infra__cost_budget" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/infra__cost_budget_history.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra_stg__team_budget { | ||
description: "infra__cost_budget_history" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/infra__databricks_costs.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__databricks_costs { | ||
description: "Databricks and aws combined costs for analysis" | ||
} |
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__ec2_cost { | ||
description: "infra__ec2_cost" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/infra__elasticcache_cost.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__elasticcache_cost { | ||
description: "infra__elasticcache_cost" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/infra__elasticsearch_cost.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__elasticsearch_cost { | ||
description: "infra__elasticsearch_cost" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/infra__github_workflow_runs.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__git_actions_runs { | ||
description: "<ENTER EXPOSURE DESCRIPTION>" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/infra__groups_and_teams.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__groups_and_teams { | ||
description: "infra__groups_and_teams" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/infra__infra_metrics_model.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__infra_metrics { | ||
description: "a looker expusre over infra metricsw" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/infra__kubernetes_cost.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__kubernetes_cost { | ||
description: "infra__kubernetes_cost" | ||
} |
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__msk_cost { | ||
description: "infra__msk_cost" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/infra__opensearch_cost.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__opensearch_cost { | ||
description: "infra__opensearch_cost" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/infra__opsgenie_alerts.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__opsgenie_alerts { | ||
description: "OpsGenie Alerts" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/infra__opsgenie_incidents.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__opsgenie_incidents { | ||
description: "OpsGenie Incidents" | ||
} |
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__rds_cost { | ||
description: "infra__rds_cost" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/infra__rivery_contract_statistics.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__rivery_contract_statistics { | ||
description: "Rivery Contract Statistics" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/infra__rivery_usage_model.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__rivery_daily_usage { | ||
description: "Rivery Usage model" | ||
} |
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__s3_cost { | ||
description: "infra__s3_cost" | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/resources/expected_lookml/infra__s3_prefix_aggregations.model.lkml
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,6 @@ | ||
connection: "yoda" | ||
include: "views/*" | ||
|
||
explore: infra__s3_prefix_aggregations { | ||
description: "infra__s3_prefix_aggregations" | ||
} |
Oops, something went wrong.