Skip to content

Commit

Permalink
fix: correct column names
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed May 23, 2024
1 parent 1b1db98 commit 2948f0f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions models/problems/fact_problem_engagement.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ with
select
org,
course_key,
"subsection" as content_level,
'subsection' as content_level,
actor_id,
subsection_block_id as block_id,
section_subsection_problem_engagement
engagement_level as section_subsection_problem_engagement
from {{ ref("subsection_problem_engagement") }}
),
section_engagement as (
select
org,
course_key,
"section" as content_level,
'section' as content_level,
actor_id,
section_block_id as block_id,
section_subsection_problem_engagement
engagement_level as section_subsection_problem_engagement
from {{ ref("section_problem_engagement") }}
),
problem_engagement as (
Expand Down
2 changes: 1 addition & 1 deletion models/problems/section_problem_engagement.sql
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,5 @@ with
group by org, course_key, section_block_id, actor_id
)

select org, course_key, actor_id as actor_id, section_block_id, engagement_level
select org, course_key, actor_id, section_block_id, engagement_level
from section_counts
2 changes: 1 addition & 1 deletion models/problems/subsection_problem_engagement.sql
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,5 @@ with
subsection_block_id
)

select org, course_key, actor_id as actor_id, subsection_block_id, engagement_level
select org, course_key, actor_id, subsection_block_id, engagement_level
from subsection_counts

0 comments on commit 2948f0f

Please sign in to comment.