Skip to content

Commit

Permalink
fix(ingestion/lookml): drop hive. from CLL (#11210)
Browse files Browse the repository at this point in the history
  • Loading branch information
sid-acryl authored Aug 21, 2024
1 parent be7b343 commit 6b3c06a
Show file tree
Hide file tree
Showing 5 changed files with 417 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def get_upstream_column_ref(
config=self.config,
)

return upstreams_column_refs
return _drop_hive_dot_from_upstream(upstreams_column_refs)

def get_upstream_dataset_urn(self) -> List[Urn]:
return self._get_upstream_dataset_urn()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
connection: "my_connection"

include: "top_10_employee_income_source.view.lkml"

explore: top_10_employee_income_source {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
view: top_10_employee_income_source {
derived_table: {
sql: SELECT id,
name,
source
FROM hive.employee_db.income_source
ORDER BY source desc
LIMIT 10
;;
}

dimension: id {
type: number
sql: ${TABLE}.id ;;
}

dimension: name {
type: string
sql: ${TABLE}.name ;;
}

dimension: source {
type: string
sql: ${TABLE}.source ;;
}
}
Loading

0 comments on commit 6b3c06a

Please sign in to comment.