-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* create dim_platform model * update description * add OCW and remove extra space * update id and add missing seed file definition * remove cast
- Loading branch information
1 parent
522fe71
commit 00bd178
Showing
4 changed files
with
66 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
version: 2 | ||
|
||
models: | ||
- name: dim_platform | ||
description: Platform information about the technical system that a given event | ||
is executed within the context of. | ||
columns: | ||
- name: platform_id | ||
description: string, primary key for this table | ||
tests: | ||
- not_null | ||
- unique | ||
- name: platform_name | ||
description: string, name of the platform | ||
tests: | ||
- not_null | ||
- unique | ||
- name: platform_description | ||
description: string, description of the platform | ||
tests: | ||
- not_null | ||
- name: platform_domain | ||
description: string, domain name of the platform, e.g. mitxonline.mit.edu | ||
tests: | ||
- not_null |
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,10 @@ | ||
with platforms as ( | ||
select * from {{ ref('platforms') }} | ||
) | ||
|
||
select | ||
{{ generate_hash_id('id') }} as platform_id | ||
, platform_name | ||
, platform_description | ||
, platform_domain | ||
from platforms |
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,7 @@ | ||
id,platform_name,platform_description,platform_domain | ||
mitxonline,MITx Online,Online courses from MIT faculty and instructors,mitxonline.mit.edu | ||
edxorg,edX.org,MIT Online courses on edX.org,www.edx.org | ||
mitxpro,MIT xPRO,MIT Professional development courses and programs that build skills and augment careers,xpro.mit.edu | ||
residential,MITx Residential,MITx Residential,lms.mitx.mit.edu | ||
bootcamps,MIT Bootcamps,MIT Bootcamps,bootcamp.odl.mit.edu | ||
ocw,OCW,MIT Open Course Ware,ocw.mit.edu |