-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from SoryRawyer/rds/problems-with-section-names
feat: add section names to problem dataset (FC-0051)
- Loading branch information
Showing
4 changed files
with
109 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
with | ||
problem_results as ( | ||
select | ||
*, | ||
{{ section_from_display("problem_name_with_location") }} as section_number, | ||
{{ subsection_from_display("problem_name_with_location") }} | ||
as subsection_number | ||
from {{ ref("int_problem_results") }} | ||
) | ||
select | ||
results.emission_time as emission_time, | ||
results.org as org, | ||
results.course_key as course_key, | ||
results.course_name as course_name, | ||
results.course_run as course_run, | ||
problems.section_with_name as section_with_name, | ||
problems.subsection_with_name as subsection_with_name, | ||
results.problem_id as problem_id, | ||
results.problem_name as problem_name, | ||
results.problem_name_with_location as problem_name_with_location, | ||
results.problem_link as problem_link, | ||
results.actor_id as actor_id, | ||
results.responses as responses, | ||
results.success as success, | ||
results.attempts as attempts, | ||
results.graded as graded, | ||
results.interaction_type as interaction_type | ||
from problem_results results | ||
join | ||
{{ ref("int_problems_per_subsection") }} problems | ||
on ( | ||
results.org = problems.org | ||
and results.course_key = problems.course_key | ||
and results.section_number = problems.section_number | ||
and results.subsection_number = problems.subsection_number | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters