Noos
PT EN
RAN-DBDEA-00045
Ranvier · DBDEA

Prova DBDEA Tópicos: transformation Dificuldade: hard A questão está em en.

A silver pipeline must exclude cancelled orders but keep every other row, including orders whose status is still NULL because they are pending manual review. After running: ```python silver = bronze.filter(col("status") != "CANCELLED") ``` QA reports that 612 rows are missing from silver — precisely the rows with NULL status. Why did this happen, and what is the correct fix?

Alternativas (Modo Leitura) Clique para filtrar a discussão →
  1. A. filter() silently ignores rows with NULL in the filtered column — .where() handles NULL predicates correctly, so switch to .where()
  2. B. The Spark reader dropped the NULL statuses at load time — reload the table with .option('mode', 'PERMISSIVE')
  3. C. Fill the NULLs before filtering: bronze.fillna('UNKNOWN', subset=['status']) makes every row comparable, so the filter keeps them
  4. D. The predicate is NULL for NULL statuses and filter() keeps only true — add an isNull() branch or a null-safe operator
Revelar gabarito

Resposta correta: The predicate is NULL for NULL statuses and filter() keeps only true — add an isNull() branch or a null-safe operator

Referência: https://docs.databricks.com/aws/en/pyspark/reference/functions

02 — Camada de Mielina · Discussão Canônica

Onde a prova tenta te enganar — e como quem passou resolveu.

0 Aprovados

contribuíram nesta questão

Matriz de Dissecção de Alternativas Clique numa alternativa para filtrar ou inaugurar a dissecção.
✦ Síntese Consolidada (Wiki) rev. #1 (baseline) · CC BY-SA 4.0
Inaugurar síntese desta questão →

Ainda não há síntese comunitária consolidada para esta questão. Abaixo está o ponto de partida oficial verificável — se você passou na prova, inaugure a dissecção das alternativas.

Gabarito Oficial (D): The predicate is NULL for NULL statuses and filter() keeps only true — add an isNull() branch or a null-safe operator

Ranvier · DBDEA

Contribuir com a Questão

Sua contribuição constrói sua Bainha Orbital

Contribuições dos pares

Nenhuma contribuição pública ainda. Seja o primeiro aprovado a explicar por que as alternativas incorretas enganam — sua contribuição constrói sua Bainha Orbital.