Noos
PT EN
RAN-DBDEA-00218
Ranvier · DBDEA

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

Phone numbers arrive in the bronze table in five different formats — '(11) 98888-7777', '5511988887777', '+55 11 98888-7777', among others. The silver contract requires every number normalized to E.164, such as +5511988887777. The transformation must run as native Spark expressions in the pipeline, with no custom code registered on the cluster. Which function fits this requirement?

Alternativas (Modo Leitura) Clique para filtrar a discussão →
  1. A. A Python UDF — regex-based reformatting always requires custom code registered on the cluster before the pipeline can run it
  2. B. regexp_extract() — Spark's regex functions can only pull matching groups out of a string; rewriting the full value is not supported
  3. C. regexp_replace() — it matches a pattern with capture groups and rebuilds the string in the normalized form in one native call
  4. D. split() with a limit — cutting on every non-digit character resolves any phone format in a single pass of the expression
Revelar gabarito

Resposta correta: regexp_replace() — it matches a pattern with capture groups and rebuilds the string in the normalized form in one native call

Referência: https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-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 (C): regexp_replace() — it matches a pattern with capture groups and rebuilds the string in the normalized form in one native call

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.