Skip to content

Commit

Permalink
Merge pull request #196 from basedosdados/staging/br_ms_sim
Browse files Browse the repository at this point in the history
[dbt] br_ms_sim
  • Loading branch information
gabrielle-carv authored Jul 28, 2023
2 parents 481ec1e + 249469a commit 75a9f2c
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions models/br_ms_sim/br_ms_sim__microdados.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
alias = 'microdados',
schema = 'br_ms_sim',
materialized = 'table',
partition_by = {
"field": [
"ano": "integer",
"sigla_uf": "string"]
}
)
partition_by={
"field": "ano",
"data_type": "int64",
"range": {
"start": 1996,
"end": 2022,
"interval": 1}
},
cluster_by = "sigla_uf",
)
}}
SELECT
SAFE_CAST(ano AS INT64) ano,
Expand Down

0 comments on commit 75a9f2c

Please sign in to comment.