We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12b3b8f commit cc0d305Copy full SHA for cc0d305
dbt/models/base/ban/base_ban_adresses.sql
@@ -19,5 +19,5 @@ SELECT
19
lat as latitude,
20
lon as longitude
21
FROM {{ source('ban', 'clone_ban_adresses_in_use') }}
22
-WHERE code_postal NOT IN ('',NULL)
+WHERE code_postal IS NOT NULL AND code_postal != ''
23
ORDER BY code_postal ASC
dbt/models/intermediate/ban/int_ban_adresses.sql
@@ -1,3 +1,7 @@
1
+/*
2
+post_hook = partial indexes on high-cardinality columns only for NOT NULL
3
+so we can still speed up the JOINS/FILTERS
4
+*/
5
{{
6
config(
7
materialized = 'table',
@@ -14,4 +18,5 @@
14
18
}}
15
16
17
-SELECT * FROM {{ ref('base_ban_adresses') }}
+SELECT *
+FROM {{ ref('base_ban_adresses') }}
0 commit comments