Skip to content

Create dim_instructors model#35

Open
sanaf26 wants to merge 1 commit into
mainfrom
dim-instructors
Open

Create dim_instructors model#35
sanaf26 wants to merge 1 commit into
mainfrom
dim-instructors

Conversation

@sanaf26

@sanaf26 sanaf26 commented Apr 13, 2026

Copy link
Copy Markdown
Collaborator

Ticket - #28

Created dim_instructors as the final instructor dimension.

What I changed

  • Selected clean instructor fields from stg_instructors

Included:

  • instructor name
  • speciality
  • club location
  • Preserved one row per instructor

Tests
Added dim_instructors.yml with column tests for key descriptive fields

@sanaf26 sanaf26 requested review from Copilot and removed request for Copilot April 13, 2026 12:56
@sanaf26 sanaf26 requested a review from Copilot April 13, 2026 12:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Creates the dim_instructors mart model as the final instructor dimension, selecting cleaned instructor attributes from stg_instructors and adding schema tests to validate key fields.

Changes:

  • Added dim_instructors model selecting instructor identifiers and descriptive attributes from stg_instructors
  • Derived instructor_name from first/last name fields
  • Added dim_instructors.yml with column-level tests (not_null/unique)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
models/marts/dim_instructors.sql Builds the instructor dimension from stg_instructors and derives instructor_name.
models/marts/dim_instructors.yml Adds schema documentation and column tests for dim_instructors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

instructor_first_name,
instructor_last_name,

concat(instructor_first_name, ' ', instructor_last_name) as instructor_name,
Comment on lines +21 to +27
tests:
- not_null

- name: instructor_name
description: "Full instructor name."
tests:
- not_null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants