diff --git a/models/video/watched_video_duration.sql b/models/video/watched_video_duration.sql index 244e40e..68fdc69 100644 --- a/models/video/watched_video_duration.sql +++ b/models/video/watched_video_duration.sql @@ -1,7 +1,7 @@ {{ config( materialized="materialized_view", - schema=env_var("ASPECTS_EVENT_SINK_DATABASE", "event_sink"), + schema=env_var("ASPECTS_XAPI_DATABASE", "xapi"), engine=get_engine("ReplacingMergeTree()"), order_by="(org,course_key,actor_id,video_id)", post_hook="OPTIMIZE TABLE {{ this }} {{ on_cluster() }} FINAL",