From 2fcc63566cf529fb1a840986ee0376e6ba9d143d Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Tue, 9 Apr 2024 14:55:19 -0500 Subject: [PATCH] fix: serialize selects as long strings --- .../dashboards/Course_Dashboard_V1.yaml | 76 +++++++++---------- .../assets/datasets/ab_user.yaml | 3 +- .../assets/datasets/course_blocks.yaml | 3 +- .../assets/datasets/course_names.yaml | 3 +- .../assets/datasets/course_overviews.yaml | 3 +- .../datasets/fact_enrollment_status.yaml | 3 +- .../assets/datasets/fact_student_status.yaml | 3 +- .../assets/datasets/int_problem_results.yaml | 3 +- .../assets/datasets/slices.yaml | 3 +- .../datasets/xapi_events_all_parsed.yaml | 3 +- 10 files changed, 56 insertions(+), 47 deletions(-) diff --git a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/dashboards/Course_Dashboard_V1.yaml b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/dashboards/Course_Dashboard_V1.yaml index bf758417c..00ea7cf9f 100644 --- a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/dashboards/Course_Dashboard_V1.yaml +++ b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/dashboards/Course_Dashboard_V1.yaml @@ -478,11 +478,11 @@ metadata: name: Date scope: excluded: - - 309 - - 320 - - 332 - - 311 - - 254 + - 94 + - 100 + - 104 + - 96 + - 64 rootPath: - ROOT_ID tabsInScope: @@ -510,9 +510,9 @@ metadata: name: Time Grain scope: excluded: - - 300 - - 320 - - 332 + - 87 + - 100 + - 104 rootPath: - TAB-4ptSkqs5MS - TAB-_Ey4nPhFr @@ -546,19 +546,19 @@ metadata: name: Video name scope: excluded: - - 295 - - 249 - - 354 - - 309 - - 300 - - 359 - - 320 - - 332 - - 311 - - 254 - - 356 - - 255 - - 342 + - 85 + - 61 + - 110 + - 94 + - 87 + - 115 + - 100 + - 104 + - 96 + - 64 + - 112 + - 65 + - 108 rootPath: - ROOT_ID tabsInScope: @@ -576,7 +576,7 @@ position: children: [] id: CHART-8p_tmmvFsY meta: - chartId: 295 + chartId: 85 height: 50 sliceName: Page views per section/subsection uuid: 0538470d-0328-4f15-9e48-ffc9e84c4c06 @@ -594,7 +594,7 @@ position: children: [] id: CHART-LiY7tPJWZv meta: - chartId: 249 + chartId: 61 height: 50 sliceName: Problems attempted per section/subsection uuid: 869edaf6-f911-4ca7-9e4b-28435bba2e82 @@ -612,7 +612,7 @@ position: children: [] id: CHART-Q6nr6irIdz meta: - chartId: 308 + chartId: 93 height: 50 sliceName: Watched Video Segments uuid: 2985a9db-c338-4008-af52-2930b81ee2e5 @@ -630,7 +630,7 @@ position: children: [] id: CHART-_BfZOEhMVM meta: - chartId: 369 + chartId: 120 height: 50 sliceName: Partial and full views per video uuid: 14c5cd80-cb50-4136-9911-d77da1737d69 @@ -648,7 +648,7 @@ position: children: [] id: CHART-explore-185-1 meta: - chartId: 354 + chartId: 110 height: 28 sliceName: Current Enrollees uuid: 00de2f72-b3ed-4994-b231-fd3cf29d758d @@ -662,7 +662,7 @@ position: children: [] id: CHART-explore-186-1 meta: - chartId: 309 + chartId: 94 height: 18 sliceName: Course Information uuid: fa249dda-78da-4ccc-9ef3-39177e6aae0c @@ -677,7 +677,7 @@ position: children: [] id: CHART-explore-188-1 meta: - chartId: 300 + chartId: 87 height: 64 sliceName: Enrollees per Enrollment Track uuid: e584199e-0ed6-42bf-afb9-db3b9fe4132b @@ -693,7 +693,7 @@ position: children: [] id: CHART-explore-189-1 meta: - chartId: 359 + chartId: 115 height: 51 sliceName: Cumulative Enrollments by Track uuid: f207c896-030a-462b-b69f-6416230d50b6 @@ -710,7 +710,7 @@ position: children: [] id: CHART-explore-191-1 meta: - chartId: 320 + chartId: 100 height: 50 sliceName: Section Summary uuid: 47417136-acd1-44a1-b41e-644eb2c237c3 @@ -728,7 +728,7 @@ position: children: [] id: CHART-explore-192-1 meta: - chartId: 332 + chartId: 104 height: 50 sliceName: Subsection Summary uuid: 2a8d96be-687d-4918-98fe-ae9fbd599152 @@ -746,7 +746,7 @@ position: children: [] id: CHART-explore-194-1 meta: - chartId: 311 + chartId: 96 height: 50 sliceName: Evolution of engagement uuid: d3ae0546-37a8-4841-a57b-8087a6c33049 @@ -764,7 +764,7 @@ position: children: [] id: CHART-explore-195-1 meta: - chartId: 254 + chartId: 64 height: 50 sliceName: Cumulative Interactions uuid: c44e43b5-ba69-4805-8d01-3b04dcbf2cb6 @@ -782,7 +782,7 @@ position: children: [] id: CHART-explore-196-1 meta: - chartId: 356 + chartId: 112 height: 20 sliceName: Learners with Passing Grade uuid: b40cdabc-b265-48d2-913d-a9dfee0b6ab1 @@ -799,7 +799,7 @@ position: children: [] id: CHART-explore-197-1 meta: - chartId: 255 + chartId: 65 height: 50 sliceName: Distribution of Current Course Grade uuid: ea565658-6796-40e8-9d1e-01ffd0778bc9 @@ -815,7 +815,7 @@ position: children: [] id: CHART-explore-198-1 meta: - chartId: 342 + chartId: 108 height: 50 sliceName: Problem Interactions uuid: ba14d2ea-8c53-4f79-aa1b-434011f3c725 @@ -833,7 +833,7 @@ position: children: [] id: CHART-explore-205-1 meta: - chartId: 339 + chartId: 106 height: 50 sliceName: Problem Results uuid: 6df96404-8c09-4a52-96c8-9a60a92cec29 @@ -847,7 +847,7 @@ position: children: [] id: CHART-jsy_lFvqGu meta: - chartId: 313 + chartId: 97 height: 50 sliceName: Video views per section/subsection uuid: 2c8072e7-44d1-4337-a843-aa2eb670b70e diff --git a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/ab_user.yaml b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/ab_user.yaml index eee651541..9007765df 100644 --- a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/ab_user.yaml +++ b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/ab_user.yaml @@ -191,7 +191,8 @@ normalize_columns: false offset: 0 params: null schema: '{{ SUPERSET_DB_NAME }}' -sql: select * from ab_user +sql: + select * from ab_user table_name: ab_user template_params: null uuid: 304a5d6d-c589-483a-8e8d-3fadbccef648 diff --git a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/course_blocks.yaml b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/course_blocks.yaml index f731a5e13..2c4c8587a 100644 --- a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/course_blocks.yaml +++ b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/course_blocks.yaml @@ -128,7 +128,8 @@ metrics: offset: 0 params: null schema: '{{ASPECTS_EVENT_SINK_DATABASE}}' -sql: "select * from {{ASPECTS_EVENT_SINK_DATABASE}}.{{ ASPECTS_EVENT_SINK_NODES_TABLE }}" +sql: |- + select * from {{ASPECTS_EVENT_SINK_DATABASE}}.{{ ASPECTS_EVENT_SINK_NODES_TABLE }} table_name: "{{ ASPECTS_EVENT_SINK_NODES_TABLE }}" template_params: null uuid: 1b73d066-fd6c-411d-a99d-fc585f9474b1 diff --git a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/course_names.yaml b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/course_names.yaml index 917c29a08..695a2bacc 100644 --- a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/course_names.yaml +++ b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/course_names.yaml @@ -71,7 +71,8 @@ normalize_columns: true offset: 0 params: null schema: '{{ASPECTS_EVENT_SINK_DATABASE}}' -sql: select * from {{ ASPECTS_EVENT_SINK_DATABASE }}.course_names +sql: |- + select * from {{ ASPECTS_EVENT_SINK_DATABASE }}.course_names table_name: course_names template_params: null uuid: 41278a97-d0ff-4645-9514-d79f80d275df diff --git a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/course_overviews.yaml b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/course_overviews.yaml index 087764e17..7924458f7 100644 --- a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/course_overviews.yaml +++ b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/course_overviews.yaml @@ -178,7 +178,8 @@ normalize_columns: true offset: 0 params: null schema: '{{ ASPECTS_EVENT_SINK_DATABASE }}' -sql: select * from {{ ASPECTS_EVENT_SINK_DATABASE }}.course_overviews +sql: |- + select * from {{ ASPECTS_EVENT_SINK_DATABASE }}.course_overviews table_name: course_overviews template_params: null uuid: 46183302-6fa6-41a3-b6a7-79ff6c1c8402 diff --git a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/fact_enrollment_status.yaml b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/fact_enrollment_status.yaml index 0437e36e3..55072ecd6 100644 --- a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/fact_enrollment_status.yaml +++ b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/fact_enrollment_status.yaml @@ -102,7 +102,8 @@ normalize_columns: false offset: 0 params: null schema: '{{ DBT_PROFILE_TARGET_DATABASE }}' -sql: 'select * from {{ DBT_PROFILE_TARGET_DATABASE }}.fact_enrollment_status' +sql: |- + select * from {{ DBT_PROFILE_TARGET_DATABASE }}.fact_enrollment_status table_name: fact_enrollment_status template_params: null uuid: 3dde421d-c0d0-43ab-8087-ca470985e88e diff --git a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/fact_student_status.yaml b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/fact_student_status.yaml index 5f0ead378..c0322b957 100644 --- a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/fact_student_status.yaml +++ b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/fact_student_status.yaml @@ -156,7 +156,8 @@ normalize_columns: false offset: 0 params: null schema: '{{ DBT_PROFILE_TARGET_DATABASE }}' -sql: 'select * from {{ DBT_PROFILE_TARGET_DATABASE }}.fact_student_status' +sql: |- + select * from {{ DBT_PROFILE_TARGET_DATABASE }}.fact_student_status table_name: fact_student_status template_params: null uuid: 633a1d4e-cd40-482f-a5dc-d5901c2181c2 diff --git a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/int_problem_results.yaml b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/int_problem_results.yaml index fcfdaa1dc..95b3bb578 100644 --- a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/int_problem_results.yaml +++ b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/int_problem_results.yaml @@ -193,7 +193,8 @@ normalize_columns: false offset: 0 params: null schema: '{{ DBT_PROFILE_TARGET_DATABASE }}' -sql: 'select * from {{ DBT_PROFILE_TARGET_DATABASE }}.int_problem_results' +sql: |- + select * from {{ DBT_PROFILE_TARGET_DATABASE }}.int_problem_results table_name: int_problem_results template_params: null uuid: c0c8b8a3-b18a-4c17-a69b-e6befea0159d diff --git a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/slices.yaml b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/slices.yaml index 6a74bdb28..de5ecf11a 100644 --- a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/slices.yaml +++ b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/slices.yaml @@ -274,7 +274,8 @@ normalize_columns: true offset: 0 params: null schema: '{{ SUPERSET_DB_NAME }}' -sql: select * from slices +sql: |- + select * from slices table_name: slices template_params: null uuid: aaf1ae12-73c1-4b88-b07d-7a8988333018 diff --git a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/xapi_events_all_parsed.yaml b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/xapi_events_all_parsed.yaml index da61c9c52..6178cf8d0 100644 --- a/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/xapi_events_all_parsed.yaml +++ b/tutoraspects/templates/aspects/build/aspects-superset/openedx-assets/assets/datasets/xapi_events_all_parsed.yaml @@ -184,7 +184,8 @@ normalize_columns: true offset: 0 params: null schema: '{{ ASPECTS_XAPI_DATABASE }}' -sql: SELECT * FROM {{ASPECTS_XAPI_DATABASE}}.xapi_events_all_parsed +sql: |- + SELECT * FROM {{ASPECTS_XAPI_DATABASE}}.xapi_events_all_parsed table_name: xapi_events_all_parsed template_params: null uuid: 2a2498dc-03ce-41a0-b798-d84f808f7da6