-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update open-edx pipeline to match SQL file output for Simeon #622
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good so far. A couple minor comments. In terms of PyPika vs. raw SQL I don't have a strong opinion on it. If it takes a little longer to write now but seems more maintainable in the future, then I'm happy to go that direction. If the SQL is faster and more maintainable then I'm happy with that option too.
Query.from_(course_team) | ||
.join(teams_membership) | ||
.on(course_team.id == teams_membership.team_id) | ||
.select("teams_membership.*") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.select("teams_membership.*") | |
.select("teams_courseteammembership.*") |
…atedCertificateTask, AuthUserTask, AuthUserProfileTask
…atedCertificateTask, AuthUserTask, AuthUserProfileTask
for more information, see https://pre-commit.ci
""" | ||
wiki_article, wiki_urlpath = Tables("wiki_article", "wiki_urlpath") | ||
subquery = ( | ||
Query.from(wiki_urlpath).as_("node").from(wiki_urlpath).as("parent") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Query.from(wiki_urlpath).as_("node").from(wiki_urlpath).as("parent") | |
Query.from_(wiki_urlpath).as_("node").from(wiki_urlpath).as("parent") |
|
Description
Initial commit, adding TeamsMembership Query
Motivation and Context
Open edX data exports from Open Learning should conform to the edx-analytics-exporter interface output
#610
How Has This Been Tested?
Types of changes
Checklist: