-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
[dados-atualizacao] br_inep_saeb #1041
Conversation
Data Check ReportTable ✔️ Check if table exists SELECT "dicionario" IN (
SELECT `table_name`
FROM `basedosdados-dev.br_inep_saeb.INFORMATION_SCHEMA.TABLES`
) AS success ✔️ Check if any column is completely null WITH
n_nulls AS (
SELECT col_name, COUNT(1) nulls_count
FROM `basedosdados-dev.br_inep_saeb.dicionario` t,
UNNEST(REGEXP_EXTRACT_ALL(TO_JSON_STRING(t), r'"(\w+)":null')) col_name
GROUP BY col_name
),
n_total AS (
SELECT COUNT(*) total_count
FROM `basedosdados-dev.br_inep_saeb.dicionario` t
)
SELECT col_name, nulls_count / total_count null_percent
FROM n_nulls, n_total ✔️ Check if primary key has unique values (QueryDoesNotExist Exception) Table ✔️ Check if table exists SELECT "proficiencia" IN (
SELECT `table_name`
FROM `basedosdados-dev.br_inep_saeb.INFORMATION_SCHEMA.TABLES`
) AS success ✔️ Check if any column is completely null WITH
n_nulls AS (
SELECT col_name, COUNT(1) nulls_count
FROM `basedosdados-dev.br_inep_saeb.proficiencia` t,
UNNEST(REGEXP_EXTRACT_ALL(TO_JSON_STRING(t), r'"(\w+)":null')) col_name
GROUP BY col_name
),
n_total AS (
SELECT COUNT(*) total_count
FROM `basedosdados-dev.br_inep_saeb.proficiencia` t
)
SELECT col_name, nulls_count / total_count null_percent
FROM n_nulls, n_total ✔️ Check if primary key has unique values (QueryDoesNotExist Exception) |
# Exemplos: id_municipio, ano. | ||
# Pode ser vazio pois certas tabelas não possuem identificadores. | ||
identifying_columns: | ||
- table_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id_tabela
Acho que agora sobe pra produção