Skip to content
Open
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
4 changes: 0 additions & 4 deletions models/staging/ngpvan/core/stg_ngpvan__activist_codes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,3 @@ dedupe AS (

SELECT *
FROM dedupe
WHERE NOT (
source_schema LIKE 'raw_avvan%'
AND committee_id = 68149
)
4 changes: 0 additions & 4 deletions models/staging/ngpvan/core/stg_ngpvan__campaigns.sql
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,3 @@ renamed AS (

SELECT *
FROM renamed
WHERE NOT (
source_schema LIKE 'raw_avvan%'
AND committee_id = 68149
)
6 changes: 1 addition & 5 deletions models/staging/ngpvan/core/stg_ngpvan__codes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WITH
),

committees AS (
SELECT * FROM {{ ref('base_ngpvan__committees') }}
SELECT * EXCEPT(_avvan_source_relation) FROM {{ ref('base_ngpvan__committees') }}
),

codetypes AS (
Expand Down Expand Up @@ -48,7 +48,3 @@ WITH
SELECT
*
FROM renamed
WHERE NOT (
source_schema LIKE 'raw_avvan%'
AND committee_id = 68149
)
4 changes: 0 additions & 4 deletions models/staging/ngpvan/core/stg_ngpvan__committees.sql
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,3 @@ WITH
SELECT
DISTINCT *
FROM renamed
WHERE NOT (
source_schema LIKE 'raw_avvan%'
AND committee_id = 68149
)
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,3 @@ WITH
)

SELECT * FROM renamed
WHERE NOT (
source_schema LIKE 'raw_avvan%'
AND committee_id = 68149
)
4 changes: 0 additions & 4 deletions models/staging/ngpvan/core/stg_ngpvan__contacts_codes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,3 @@ WITH
SELECT
*
FROM renamed
WHERE NOT (
source_schema LIKE 'raw_avvan%'
AND committee_id = 68149
)
4 changes: 0 additions & 4 deletions models/staging/ngpvan/core/stg_ngpvan__contacts_contacts.sql
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,3 @@ WITH
)

SELECT DISTINCT * FROM renamed
WHERE NOT (
source_schema LIKE 'raw_avvan%'
AND committee_id = 68149
)
4 changes: 0 additions & 4 deletions models/staging/ngpvan/core/stg_ngpvan__contacts_notes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,3 @@ WITH
SELECT
*
FROM renamed
WHERE NOT (
source_schema LIKE 'raw_avvan%'
AND committee_id = 68149
)
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,3 @@ WITH
)

SELECT * FROM renamed
WHERE NOT (
source_schema LIKE 'raw_avvan%'
AND committee_id = 68149
)
4 changes: 0 additions & 4 deletions models/staging/ngpvan/core/stg_ngpvan__public_users.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,3 @@ WITH
SELECT
*
FROM renamed
WHERE NOT (
source_schema LIKE 'raw_avvan%'
AND committee_id = 68149
)
4 changes: 0 additions & 4 deletions models/staging/ngpvan/core/stg_ngpvan__survey_questions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,3 @@ WITH
)

SELECT * FROM renamed
WHERE NOT (
source_schema LIKE 'raw_avvan%'
AND committee_id = 68149
)
4 changes: 0 additions & 4 deletions models/staging/ngpvan/core/stg_ngpvan__survey_responses.sql
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,3 @@ WITH
)

SELECT DISTINCT * FROM dedupe
WHERE NOT (
source_schema LIKE 'raw_avvan%'
AND committee_id = 68149
)
4 changes: 0 additions & 4 deletions models/staging/ngpvan/stg_ngpvan__users_committees.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,3 @@ WITH
SELECT
*
FROM renamed
WHERE NOT (
source_schema LIKE 'raw_avvan%'
AND committee_id = 68149
)