Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

175
Vistas
Problem with UTF normalization in BigQuery in Javascript UDF

I'm trying to strip accents from UTF string. Normalization function doesn't seem to work in BigQuery's Javascript UDF. I've tested the same function in browser and it gives me right results.

BigQuery has built in normalization function and it works fine, but why doesn't it work within Javascript UDF? Is this behavior expected? What could be the reason?

Example query:

CREATE TEMP FUNCTION normAndRepl(s STRING) RETURNS STRING LANGUAGE js AS """
return s.normalize('NFD').replace(/[\u0300-\u036f]/g, '')
""";

CREATE TEMP FUNCTION repl(s STRING) RETURNS STRING LANGUAGE js AS """
return s.replace(/[\u0300-\u036f]/g, '')
""";

SELECT repl(normalize('München', NFD)), normAndRepl('München')

The results are as expected in left column, but not necessarily in right one.

f0_     | f1_
--------+--------
Munchen | München
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda