-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ingest): lookml - adding support for only emitting reachable vie…
…ws from explores (#5333)
- Loading branch information
1 parent
afc9842
commit e93e469
Showing
9 changed files
with
917 additions
and
33 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,4 +30,4 @@ explore: data_model { | |
value: "day" | ||
} | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
metadata-ingestion/tests/integration/lookml/lkml_samples/data2.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,10 @@ | ||
connection: "my_other_connection" | ||
include: "**/*.view.lkml" | ||
|
||
explore: aliased_explore2 { | ||
from: my_view2 | ||
} | ||
|
||
explore: duplicate_explore { | ||
from: my_view | ||
} |
47 changes: 47 additions & 0 deletions
47
metadata-ingestion/tests/integration/lookml/lkml_samples/foo2.view.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,47 @@ | ||
view: my_view2 { | ||
derived_table: { | ||
sql: | ||
SELECT | ||
is_latest, | ||
country, | ||
city, | ||
timestamp, | ||
measurement | ||
FROM | ||
my_table ;; | ||
} | ||
|
||
dimension: country { | ||
type: string | ||
description: "The country" | ||
sql: ${TABLE}.country ;; | ||
} | ||
|
||
dimension: city { | ||
type: string | ||
description: "City" | ||
sql: ${TABLE}.city ;; | ||
} | ||
|
||
dimension: is_latest { | ||
type: yesno | ||
description: "Is latest data" | ||
sql: ${TABLE}.is_latest ;; | ||
} | ||
|
||
dimension_group: timestamp { | ||
group_label: "Timestamp" | ||
type: time | ||
description: "Timestamp of measurement" | ||
sql: ${TABLE}.timestamp ;; | ||
timeframes: [hour, date, week, day_of_week] | ||
} | ||
|
||
measure: average_measurement { | ||
group_label: "Measurement" | ||
type: average | ||
description: "My measurement" | ||
sql: ${TABLE}.measurement ;; | ||
} | ||
|
||
} |
Oops, something went wrong.