Remove from event_id dimension in final view

This commit is contained in:
Wil Stuckey 2024-05-02 11:08:31 -05:00
Родитель 3f6d6d1c70
Коммит 23bc68a2f4
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -109,10 +109,8 @@ class EventsView(View):
"""Generate the event_id dimension to be used as a primary key for a one to many join."""
event_id = self.select_dimension("event_id", dimensions, "events")
if event_id:
event_id_field = event_id["name"]
return {
"name": "event_id",
"primary_key": "yes",
"sql": f"${{{event_id_field}}}",
}
return None