diff --git a/models/video/watched_video_duration.sql b/models/video/watched_video_duration.sql index a0e9cd4..ebab669 100644 --- a/models/video/watched_video_duration.sql +++ b/models/video/watched_video_duration.sql @@ -21,8 +21,8 @@ with 'http://adlnet.gov/expapi/verbs/terminated', 'https://w3id.org/xapi/video/verbs/seeked' ) - and org in cast({org_filter:String}, 'Array(String)') - and course_key in cast({course_key_filter:String}, 'Array(String)') + and org in cast(coalesce({org_filter:String},'[]'), 'Array(String)') + and course_key in cast(coalesce({course_key_filter:String},'[]'), 'Array(String)') ), matches as ( select