-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: reduce suf cols to only those used
- Loading branch information
Showing
1 changed file
with
22 additions
and
8 deletions.
There are no files selected for viewing
30 changes: 22 additions & 8 deletions
30
src/dbt/kipptaf/models/powerschool/staging/stg_powerschool__u_studentsuserfields.sql
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 |
---|---|---|
@@ -1,9 +1,23 @@ | ||
{{ | ||
dbt_utils.union_relations( | ||
relations=[ | ||
source("kippnewark_powerschool", model.name), | ||
source("kippcamden_powerschool", model.name), | ||
source("kippmiami_powerschool", model.name), | ||
] | ||
with | ||
union_relations as ( | ||
{{ | ||
dbt_utils.union_relations( | ||
relations=[ | ||
source("kippnewark_powerschool", model.name), | ||
source("kippcamden_powerschool", model.name), | ||
source("kippmiami_powerschool", model.name), | ||
] | ||
) | ||
}} | ||
) | ||
}} | ||
|
||
select | ||
studentsdcid, | ||
fleid, | ||
newark_enrollment_number, | ||
infosnap_id, | ||
infosnap_opt_in, | ||
media_release, | ||
rides_staff, | ||
is_504, | ||
from union_relations |