BigQuery Launches Time Series and Range Functions for Advanced Data Analysis

August 13, 2024 at 11:39:01 AM

TL;DR Google announces time series and range functions in BigQuery for advanced data analysis. Key features include DATE_BUCKET, DATETIME_BUCKET, GAP_FILL, and TIMESTAMP_BUCKET for time series, and GENERATE_RANGE_ARRAY, RANGE, RANGE_CONTAINS, RANGE_END, RANGE_INTERSECT, RANGE_OVERLAPS, RANGE_SESSIONIZE, and RANGE_START for ranges. These functions enhance BigQuery's capabilities for applications like financial modeling, user behavior tracking, and sensor data processing.

BigQuery Launches Time Series and Range Functions for Advanced Data Analysis

Google has announced the general availability (GA) of time series and range functions in BigQuery, enhancing its capabilities for time series analysis and data manipulation.

Time series analysis involves sequences of data points, each consisting of a time and an associated value. In relational databases, time series data is typically modeled as a table with a time column, optional partitioning columns (such as zip code), and one or more value columns, or a STRUCT type combining multiple values.

1. Time Series Functions:

  • DATE_BUCKET: Determines the lower bound of a date bucket.
  • DATETIME_BUCKET: Finds the lower bound of a datetime bucket.
  • GAP_FILL: Identifies and fills gaps in time series data.
  • TIMESTAMP_BUCKET: Locates the lower bound of a timestamp bucket.

2. Range Functions:

  • GENERATE_RANGE_ARRAY: Splits a range into an array of subranges.
  • RANGE: Constructs date, datetime, or timestamp ranges.
  • RANGE_CONTAINS: Checks for range inclusion.
  • RANGE_END: Retrieves the upper bound of a range.
  • RANGE_INTERSECT: Finds intersecting segments of two ranges.
  • RANGE_OVERLAPS: Checks if two ranges overlap.
  • RANGE_SESSIONIZE: Produces sessionized ranges.
  • RANGE_START: Gets the lower bound of a range.

These new functions are designed to support complex time series analysis in relational databases, where time series data typically includes time columns, optional partitioning columns, and value columns or structs.

This update significantly expands BigQuery's analytical capabilities, allowing users to perform more sophisticated time-based and range-based operations on their data. It's particularly valuable for applications involving temporal data analysis, such as financial modeling, user behavior tracking, and sensor data processing.

Have more questions on this topic? Ask our AI assistant for in-depth insights.

Read more from sources 👇

The Only Digital Marketing Feed You'll Ever Need.

Stay informed your way. Tailored updates when and how you want them. 100% Free.

10,000+ Users

500+ Sources

1000+ Tools

Or

Related Posts

BigQuery adds WITH expressions for temporary variables in GoogleSQL queries

BigQuery adds WITH expressions for temporary variables in GoogleSQL queries

Google Cloud
Google Cloud

Official Source

Official Source

Google Cloud is a Official Source. The source has been verified by Swipe Insight team.

Official Source
BigQuery Update Enabling advanced runtime with short query optimizations in preview

BigQuery Update Enabling advanced runtime with short query optimizations in preview

Google Cloud
Google Cloud

Official Source

Official Source

Google Cloud is a Official Source. The source has been verified by Swipe Insight team.

Official Source
BigQuery Introduces New Vector Index Management and Data Loading Features

BigQuery Introduces New Vector Index Management and Data Loading Features

Google Cloud
Google Cloud

Official Source

Official Source

Google Cloud is a Official Source. The source has been verified by Swipe Insight team.

Official Source
Tired of spending too much time creating audits for your clients?

Tired of spending too much time creating audits for your clients?

Featured
BigQuery launches DISTINCT pipe operator for selecting unique rows in queries

BigQuery launches DISTINCT pipe operator for selecting unique rows in queries

Google Cloud
Google Cloud

Official Source

Official Source

Google Cloud is a Official Source. The source has been verified by Swipe Insight team.

Official Source
BigQuery sets default on-demand query limit to 200TB per day from September 2025

BigQuery sets default on-demand query limit to 200TB per day from September 2025

BigQuery Sharing Listings Can Now Be Monetized on Google Cloud Marketplace

BigQuery Sharing Listings Can Now Be Monetized on Google Cloud Marketplace

Google Cloud
Google Cloud

Official Source

Official Source

Google Cloud is a Official Source. The source has been verified by Swipe Insight team.

Official Source
Google Introduces Automated Data Insights Feature for BigQuery with Gemini Integration

Google Introduces Automated Data Insights Feature for BigQuery with Gemini Integration

Google Cloud
Google Cloud

Official Source

Official Source

Google Cloud is a Official Source. The source has been verified by Swipe Insight team.

Official Source

Related Tools

Markifact logo

Markifact

Verified Tool

Verified Tool

Markifact is a Verified Tool. Want to get this badge? Contact us.

Verified Tool

Marketing Workflows Powered by AI

Featured
Marketing Auditor logo

Marketing Auditor

Verified Tool

Verified Tool

Marketing Auditor is a Verified Tool. Want to get this badge? Contact us.

Verified Tool

Automated audits for Google Ads and Analytics.

Get Featured Here

Showcase your tool in this list.

Contact Us
Databricks logo

Databricks

Generative AI-powered data intelligence platform

Data Engineering
GA4 SQL logo

GA4 SQL

Verified Tool

Verified Tool

GA4 SQL is a Verified Tool. Want to get this badge? Contact us.

Verified Tool

Generate GA4 BigQuery queries easily

Data Analysis
TapClicks logo

TapClicks

Automated marketing solutions powered by your data

Data Engineering
Stitch logo

Stitch

Automated cloud data pipelines, no coding needed

Data Engineering
Akkio logo

Akkio

AI-powered analytics for agencies

Data Analysis
NinjaCat logo

NinjaCat

AI-powered marketing data and analytics platform

Reporting
Funnel logo

Funnel

Aggregate and analyze marketing data seamlessly

Reporting
Fivetran logo

Fivetran

Effortlessly centralize and move data from any source

Data Engineering

Get Featured Here

Showcase your tool in this list.

Contact Us