From 2f70a56bb5c828e7bbc81710b983b2c426e9a4a0 Mon Sep 17 00:00:00 2001 From: d116626 Date: Fri, 12 Jan 2024 12:05:40 -0300 Subject: [PATCH] chore: change ficha_financeira_contabil --- .../ficha_financeira_contabil.sql | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/queries/models/recursos_humanos_ergon/ficha_financeira_contabil.sql b/queries/models/recursos_humanos_ergon/ficha_financeira_contabil.sql index f74e963..e469ad3 100644 --- a/queries/models/recursos_humanos_ergon/ficha_financeira_contabil.sql +++ b/queries/models/recursos_humanos_ergon/ficha_financeira_contabil.sql @@ -10,24 +10,24 @@ }} SELECT - SAFE_CAST(DATE(mes_ano_folha) AS DATE) AS data_folha, - SAFE_CAST(REGEXP_REPLACE(TRIM(numfunc), r'.0$', '') AS STRING) AS id_funcionario, - SAFE_CAST(REGEXP_REPLACE(TRIM(numvinc), r'.0$', '') AS STRING) AS id_vinculo, - SAFE_CAST(REGEXP_REPLACE(TRIM(numpens), r'.0$', '') AS INT64) AS numero_pensionista, - SAFE_CAST(TRIM(num_folha) AS INT64) AS numero_folha, - SAFE_CAST(REGEXP_REPLACE(TRIM(setor), r'.0$', '') AS STRING) AS id_setor, + SAFE_CAST(DATE(mes_ano_folha) AS DATE) AS mes_ano_folha, + SAFE_CAST(REGEXP_REPLACE(TRIM(numfunc), r'.0$', '') AS STRING) AS numfunc, + SAFE_CAST(REGEXP_REPLACE(TRIM(numvinc), r'.0$', '') AS STRING) AS numvinc, + SAFE_CAST(REGEXP_REPLACE(TRIM(numpens), r'.0$', '') AS INT64) AS numpens, + SAFE_CAST(TRIM(num_folha) AS INT64) AS num_folha, + SAFE_CAST(REGEXP_REPLACE(TRIM(setor), r'.0$', '') AS STRING) AS setor, SAFE_CAST(TRIM(secretaria) AS STRING) AS secretaria, - SAFE_CAST(TRIM(tipo_func) AS STRING) AS tipo_funcionario, - SAFE_CAST(TRIM(detalha) AS STRING) AS detalhamento, + SAFE_CAST(TRIM(tipo_func) AS STRING) AS tipo_func, + SAFE_CAST(TRIM(detalha) AS STRING) AS detalha, SAFE_CAST(TRIM(rubrica) AS STRING) AS rubrica, SAFE_CAST(TRIM(tipo_rubrica) AS STRING) AS tipo_rubrica, - SAFE_CAST(TRIM(mes_ano_direito) AS STRING) AS competencia_direito, - SAFE_CAST(TRIM(desc_vant) AS STRING) AS descricao_vantagem, + SAFE_CAST(TRIM(mes_ano_direito) AS STRING) AS mes_ano_direito, + SAFE_CAST(TRIM(desc_vant) AS STRING) AS desc_vant, SAFE_CAST(REGEXP_REPLACE(valor, r',', '.') AS FLOAT64) AS valor, SAFE_CAST(TRIM(complemento) AS STRING) AS complemento, - SAFE_CAST(TRIM(tipo_classif) AS STRING) AS tipo_classificacao, + SAFE_CAST(TRIM(tipo_classif) AS STRING) AS tipo_classif, SAFE_CAST(TRIM(classificacao) AS STRING) AS classificacao, - SAFE_CAST(REGEXP_REPLACE(TRIM(emp_codigo), r'.0$', '') AS STRING) AS id_empresa, + SAFE_CAST(REGEXP_REPLACE(TRIM(emp_codigo), r'.0$', '') AS STRING) AS emp_codigo, SAFE_CAST(data_particao AS DATE) data_particao, FROM rj-smfp.recursos_humanos_ergon_staging.ficha_financeira_contabil AS t WHERE