-
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.
- Loading branch information
Showing
3 changed files
with
40 additions
and
56 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
38 changes: 38 additions & 0 deletions
38
airflow/include/sql/sparte/models/admin_express/epci_tout_type.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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{{ | ||
config( | ||
materialized='table', | ||
indexes=[ | ||
{'columns': ['id'], 'type': 'btree'}, | ||
{'columns': ['code'], 'type': 'btree'}, | ||
{'columns': ['name'], 'type': 'btree'}, | ||
{'columns': ['geom'], 'type': 'gist'} | ||
]) | ||
}} | ||
with together as ( | ||
SELECT | ||
*, | ||
32620 AS srid_source | ||
FROM {{ ref('epci_guadeloupe') }} | ||
UNION ALL | ||
SELECT | ||
*, | ||
32620 AS srid_source | ||
FROM {{ ref('epci_martinique') }} | ||
UNION ALL | ||
SELECT | ||
*, | ||
2972 AS srid_source | ||
FROM {{ ref('epci_guyane') }} | ||
UNION ALL | ||
SELECT | ||
*, | ||
2975 AS srid_source | ||
FROM {{ ref('epci_reunion') }} | ||
UNION ALL | ||
SELECT | ||
*, | ||
2154 AS srid_source | ||
FROM {{ ref('epci_metropole') }} | ||
) | ||
SELECT * FROM together | ||
WHERE is_ept = false |
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