Skip to content
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

fix: set correct schema for all datasets #703

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ metrics:
normalize_columns: false
offset: 0
params: null
schema: superset
sql: select * from superset.ab_user
schema: {{ SUPERSET_DB_NAME }}
sql: select * from ab_user
table_name: ab_user
template_params: null
uuid: 304a5d6d-c589-483a-8e8d-3fadbccef648
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ metrics:
warning_text: null
offset: 0
params: null
schema: main
schema: {{ASPECTS_EVENT_SINK_DATABASE}}
sql: "select * from {{ASPECTS_EVENT_SINK_DATABASE}}.{{ ASPECTS_EVENT_SINK_NODES_TABLE }}"
table_name: "{{ ASPECTS_EVENT_SINK_NODES_TABLE }}"
template_params: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: main
schema: {{ASPECTS_EVENT_SINK_DATABASE}}
sql: select * from {{ ASPECTS_EVENT_SINK_DATABASE }}.course_names
table_name: course_names
template_params: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: main
schema: {{ ASPECTS_EVENT_SINK_DATABASE }}
sql: select * from {{ ASPECTS_EVENT_SINK_DATABASE }}.course_overviews
table_name: course_overviews
template_params: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: superset
schema: {{ SUPERSET_DB_NAME }}
sql: 'select * from dashboards'
table_name: dashboards
template_params: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: main
schema: {{ DBT_PROFILE_TARGET_DATABASE }}
sql: |-
{% filter indent(width=2) %}{% include 'openedx-assets/queries/dim_course_problems.sql' %}{% endfilter %}
table_name: dim_course_problems
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: main
schema: {{ DBT_PROFILE_TARGET_DATABASE }}
sql: |-
{% filter indent(width=2) %}{% include 'openedx-assets/queries/dim_course_videos.sql' %}{% endfilter %}
table_name: dim_course_videos
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: main
schema: {{ DBT_PROFILE_TARGET_DATABASE }}
sql: |-
{% filter indent(width=2) %}{% include 'openedx-assets/queries/fact_course_grades.sql' %}{% endfilter %}
table_name: fact_course_grades
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: main
schema: {{ DBT_PROFILE_TARGET_DATABASE }}
sql: |-
{% filter indent(width=2) %}{% include 'openedx-assets/queries/fact_enrollments.sql' %}{% endfilter %}
table_name: fact_enrollments
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: main
schema: {{ DBT_PROFILE_TARGET_DATABASE }}
sql: |-
{% filter indent(width=2) %}{% include 'openedx-assets/queries/fact_enrollments_by_day.sql' %}{% endfilter %}
table_name: fact_enrollments_by_day
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: main
schema: {{ DBT_PROFILE_TARGET_DATABASE }}
sql: |-
{% filter indent(width=2) %}{% include 'openedx-assets/queries/fact_forum_interactions.sql' %}{% endfilter %}
table_name: fact_forum_interactions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: main
schema: {{ DBT_PROFILE_TARGET_DATABASE }}
sql: |-
{% filter indent(width=2) %}{% include 'openedx-assets/queries/fact_learner_problem_course_summary.sql' %}{% endfilter %}
table_name: fact_learner_problem_course_summary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: main
schema: {{ DBT_PROFILE_TARGET_DATABASE }}
sql: |-
{% filter indent(width=2) %}{% include 'openedx-assets/queries/fact_learner_problem_summary.sql' %}{% endfilter %}
table_name: fact_learner_problem_summary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: main
schema: {{ DBT_PROFILE_TARGET_DATABASE }}
sql: |-
{% filter indent(width=2) %}{% include 'openedx-assets/queries/fact_pageview_engagement.sql' %}{% endfilter %}
table_name: fact_pageview_engagement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: main
schema: {{ DBT_PROFILE_TARGET_DATABASE }}
sql: |-
{% filter indent(width=2) %}{% include 'openedx-assets/queries/fact_problem_grades.sql' %}{% endfilter %}
table_name: fact_problem_grades
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: main
schema: {{ DBT_PROFILE_TARGET_DATABASE }}
sql: |-
{% filter indent(width=2) %}{% include 'openedx-assets/queries/fact_problem_responses.sql' %}{% endfilter %}
table_name: fact_problem_responses
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: main
schema: {{ DBT_PROFILE_TARGET_DATABASE }}
sql: |-
{% filter indent(width=2) %}{% include 'openedx-assets/queries/fact_transcript_usage.sql' %}{% endfilter %}
table_name: fact_transcript_usage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: main
schema: {{ DBT_PROFILE_TARGET_DATABASE }}
sql: |-
{% filter indent(width=2) %}{% include 'openedx-assets/queries/fact_video_engagement.sql' %}{% endfilter %}
table_name: fact_video_engagement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: main
schema: {{ DBT_PROFILE_TARGET_DATABASE }}
sql: |-
{% filter indent(width=2) %}{% include 'openedx-assets/queries/fact_video_plays.sql' %}{% endfilter %}
table_name: fact_video_plays
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: main
schema: {{ DBT_PROFILE_TARGET_DATABASE }}
sql: |-
{% filter indent(width=2) %}{% include 'openedx-assets/queries/fact_watched_video_segments.sql' %}{% endfilter %}
table_name: fact_watched_video_segments
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: main
schema: {{ DBT_PROFILE_TARGET_DATABASE }}
sql: |-
{% filter indent(width=2) %}{% include 'openedx-assets/queries/hints_per_success.sql' %}{% endfilter %}
table_name: hints_per_success
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ metrics:
normalize_columns: false
offset: 0
params: null
schema: main
schema: {{ ASPECTS_XAPI_DATABASE }}
sql: |-
{% filter indent(width=2) %}{% include 'openedx-assets/queries/indexed_events.sql' %}{% endfilter %}
table_name: indexed_events
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: main
schema: {{ DBT_PROFILE_TARGET_DATABASE }}
sql: |-
{% filter indent(width=2) %}{% include 'openedx-assets/queries/posts_per_user.sql' %}{% endfilter %}
table_name: posts_per_user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ metrics:
normalize_columns: false
offset: 0
params: null
schema: main
schema: system
sql: |
SELECT
query_duration_ms,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: superset
sql: select * from superset.slices
schema: {{ SUPERSET_DB_NAME }}
sql: select * from slices
table_name: slices
template_params: null
uuid: aaf1ae12-73c1-4b88-b07d-7a8988333018
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ metrics:
normalize_columns: false
offset: 0
params: null
schema: main
schema: system
sql: |-
{% filter indent(width=2) %}{% include 'openedx-assets/queries/slowest_clickhouse_queries.sql' %}{% endfilter %}
table_name: slowest_clickhouse_queries
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ metrics:
normalize_columns: false
offset: 0
params: null
schema: superset
schema: {{ SUPERSET_DB_NAME }}
sql: |-
{% filter indent(width=2) %}{% include 'openedx-assets/queries/superset_action_log.sql' %}{% endfilter %}
table_name: superset_action_log
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description: null
default_endpoint: null
offset: 0
cache_timeout: null
schema: main
sql: 'select * from event_sink.user_pii'
schema: {{ ASPECTS_EVENT_SINK_DATABASE }}
sql: 'select * from {{ ASPECTS_EVENT_SINK_DATABASE }}.user_pii'
params: null
template_params: null
filter_select_enabled: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ metrics:
normalize_columns: true
offset: 0
params: null
schema: main
schema: {{ ASPECTS_XAPI_DATABASE }}
sql: SELECT * FROM {{ASPECTS_XAPI_DATABASE}}.xapi_events_all_parsed
table_name: xapi_events_all_parsed
template_params: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ SELECT
emission_time
FROM events
JOIN
event_sink.course_names courses
{{ ASPECTS_EVENT_SINK_DATABASE }}.course_names courses
ON
(events.course_key = courses.course_key)
Loading