Remove document id primary key
This commit is contained in:
Родитель
30de2a68f8
Коммит
242913c241
|
@ -46,7 +46,6 @@ class GleanPingExplore(PingExplore):
|
|||
"relationship": "one_to_many",
|
||||
"sql": (
|
||||
f"LEFT JOIN UNNEST(${{{base_name}.{metric}}}) AS {view_name} "
|
||||
f"ON ${{{base_name}.document_id}} = ${{{view_name}.document_id}}"
|
||||
),
|
||||
}
|
||||
)
|
||||
|
|
|
@ -71,9 +71,7 @@ class PingView(View):
|
|||
|
||||
# set document id field as a primary key for joins
|
||||
view_defn["dimensions"] = [
|
||||
d if d["name"] != "document_id" else dict(**d, primary_key="yes")
|
||||
for d in dimensions
|
||||
if not lookml_utils._is_dimension_group(d)
|
||||
d for d in dimensions if not lookml_utils._is_dimension_group(d)
|
||||
]
|
||||
view_defn["dimension_groups"] = [
|
||||
d for d in dimensions if lookml_utils._is_dimension_group(d)
|
||||
|
|
Загрузка…
Ссылка в новой задаче