Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix]: rm unique_combination_columns tests #551

Merged
merged 1 commit into from
Apr 17, 2024
Merged

[fix]: rm unique_combination_columns tests #551

merged 1 commit into from
Apr 17, 2024

Conversation

arthurfg
Copy link
Collaborator

  • Remove os testes de chave única composta do conjunto br_cgu_beneficios_cidadao. Os beneficiários menores de idade possuem o mesmo nome e não possuem o NIS, quebrando o teste.
    query:
with validation_errors as (

    select
        nome_favorecido, ano_competencia, mes_competencia, ano_referencia, mes_referencia, id_municipio, nis_favorecido, valor_parcela
    from `basedosdados-dev`.`br_cgu_beneficios_cidadao`.`novo_bolsa_familia`
    group by nome_favorecido, ano_competencia, mes_competencia, ano_referencia, mes_referencia, id_municipio, nis_favorecido, valor_parcela
    having count(*) > 1

)

select *
from validation_errors

Resultado:
Captura de Tela 2024-04-17 às 18 03 07

@arthurfg arthurfg self-assigned this Apr 17, 2024
@arthurfg arthurfg merged commit 78fea7d into main Apr 17, 2024
4 checks passed
@arthurfg arthurfg deleted the cgu-tests branch April 17, 2024 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants