Skip to Content
Google BigQuery: La Guía Definitiva
book

Google BigQuery: La Guía Definitiva

by Valliappa Lakshmanan, Jordan Tigani
September 2024
Intermediate to advanced
522 pages
14h 52m
Spanish
O'Reilly Media, Inc.
Content preview from Google BigQuery: La Guía Definitiva

Capítulo 3. Tipos de datos, funciones y operadores

Este trabajo se ha traducido utilizando IA. Agradecemos tus opiniones y comentarios: translation-feedback@oreilly.com

En las consultas de alquiler de bicicletas de los capítulos anteriores, cuando dividimos la duración del viaje por 60, pudimos hacerlo porque la duración del viaje era de tipo numérico. Intentar dividir el género entre 60 no habría funcionado porque el género es una cadena. Las funciones y operaciones que tienes a tu disposición pueden estar restringidas en función del tipo de datos a los que las apliques.

BigQuery admite varios tipos de datos para almacenar datos numéricos, de cadenas, temporales, geográficos, estructurados y semiestructurados :

INT64
Es el único tipo entero. Puede representar números que van aproximadamente de 10-19 a1019. Para los números de valor real, utiliza FLOAT64, y para los booleanos, BOOL.
NUMERIC
NUMERIC ofrece 38 dígitos de precisión y 9 dígitos decimales de escala y es adecuado para cálculos exactos, como en finanzas.
STRING
Es un tipo de primera clase y representa secuencias de longitud variable de caracteres Unicode. BYTES son secuencias de longitud variable de caracteres (no Unicode).
TIMESTAMP
Esto representa un punto absoluto en el tiempo.
DATETIME
Este representa una fecha y hora de calendario. DATE y TIME también están disponibles por separado.
GEOGRAPHY
GEOGRAPHY representa puntos, líneas y polígonos en la superficie de la Tierra.
STRUCT y ARRAY
Consulta la descripción para ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Python para el Análisis de Datos, 3ª Edición

Python para el Análisis de Datos, 3ª Edición

Wes McKinney
Docker: Up & Running, 3ª Edición

Docker: Up & Running, 3ª Edición

Sean P. Kane, Karl Matthias
Entender el ETL

Entender el ETL

Matt Palmer

Publisher Resources

ISBN: 9781098187170