top of page

BigQuery ML.TREND, ML.SEASONALITY and change point functions are GA

4 hours ago
6 min read
Cover with the title BigQuery ML.TREND, ML.SEASONALITY and change point functions are GA over a teal city skyline. Data Studios original cover

Google Cloud moved four BigQuery table-valued functions for time series and statistical analysis to general availability on November 24, 2026. According to the BigQuery release notes, ML.TREND, ML.SEASONALITY, ML.DETECT_CHANGE_POINTS and ML.CORRELATION are now generally available in the query editor and as part of conversational analytics in BigQuery. Each one runs directly on a table or a query result, so an analyst can get a trend line, seasonal components, structural shifts or correlation coefficients from SQL without first creating and training a BigQuery ML model.


The functions reached GA in two steps. ML.TREND, ML.SEASONALITY and ML.DETECT_CHANGE_POINTS were announced in Preview on August 20, 2026 for the query editor and conversational analytics, and conversational analytics gained ML.CORRELATION in Preview on September 10, 2026. The GA entry covers all four. When the reference pages were checked on November 26, 2026, the pages for ML.TREND and ML.DETECT_CHANGE_POINTS had been updated on November 24 without a Preview label, while the pages for ML.SEASONALITY and ML.CORRELATION still carried the Pre-GA notice from their August and September versions, so teams that track launch stages for compliance reasons should keep a copy of the release-note entry alongside their own records.


For BI teams the change is practical. Trend, seasonality and change point analysis used to mean exporting data to a notebook or building an ARIMA_PLUS model and querying its outputs. The GA label makes them a sounder choice for scheduled queries, dashboards and verified queries for data agents than Preview features, which Google offers under Pre-GA terms.


··········


⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣

BIGQUERY TIME SERIES FUNCTIONS: WHAT EACH ONE RETURNS.


The four functions share the same calling pattern: the first argument is either TABLE followed by a table name or a GoogleSQL query in parentheses, and the remaining arguments are passed by name. The time series functions require a numeric data column (INT64, NUMERIC, BIGNUMERIC or FLOAT64) and a time column of type TIMESTAMP, DATE or DATETIME, and they accept optional id_cols so that one call can process many series at once, one per unique combination of ID values.


........


Function

What it returns

Main optional arguments

Reference page label (Nov 26, 2026)

ML.TREND

Trend component per time point, optional forecast rows

id_cols, horizon, smoothing_window_size, adjust_step_changes

No Preview label

ML.SEASONALITY

Yearly, quarterly, monthly, weekly and daily components

id_cols, seasonalities, horizon

Preview notice still shown

ML.DETECT_CHANGE_POINTS

Begin and end of each structural shift, with summary metrics

id_cols

No Preview label

ML.CORRELATION

Correlation coefficient per column pair and segment

dimension_cols, method

Preview notice still shown


........


ML.TREND returns one row per time point with a time_series_type column set to "history" or "forecast", the input value (or an interpolated value for gaps), a trend column of type FLOAT64 and a status column that stays empty when the input is valid. The documentation says the function uses the same algorithm as the ARIMA_PLUS model. The horizon argument adds between 1 and 10,000 forecast points, smoothing_window_size controls the center moving average applied to the historical trend (default 5), and adjust_step_changes, which defaults to FALSE, turns on automatic detection and adjustment of step changes.


ML.SEASONALITY returns the same history and forecast structure with separate FLOAT64 columns for yearly, quarterly, monthly, weekly and daily components. If the seasonalities argument is omitted, all of them are detected automatically, and a column is NULL when no pattern of that period is found. Its horizon argument defaults to 0, which returns historical rows only.


ML.DETECT_CHANGE_POINTS looks for windows where the behavior of a series shifts in a sustained way, such as a change of level, and the documentation describes it as aimed at gradual, lasting shifts rather than isolated spikes. Each output row gives begin_timestamp, end_timestamp and a metrics struct with the average, minimum, maximum, standard deviation and count of data points inside the change point. When nothing is detected, the timestamps and metrics are NULL.


ML.CORRELATION compares one target column with one or more metric columns and can slice the result by up to 12 dimension columns, computing a coefficient for every combination of dimensions. The method argument accepts PEARSON, SPEARMAN or KENDALL, with PEARSON as the default; the documentation warns that KENDALL is more expensive and can be slow on large tables. Output rows include the segment as an array of dimension and value pairs, the column names, the coefficient between -1.0 and 1.0, segment_size and segment_proportion.


··········


RUNNING ML.TREND AND ML.DETECT_CHANGE_POINTS ON A SALES TABLE.


The examples below follow the documented syntax and use an illustrative table, my_dataset.daily_sales, with one row per day and region and columns sale_date (DATE), region (STRING), revenue (NUMERIC), ad_spend (NUMERIC) and discount_rate (FLOAT64). The first query returns the historical trend for every region and a 30-day forecast of the trend.


SELECT
  *
FROM
  ML.TREND(
    TABLE my_dataset.daily_sales,
    data_col => 'revenue',
    timestamp_col => 'sale_date',
    id_cols => ['region'],
    horizon => 30
  )
ORDER BY
  region,
  sale_date;

The second query asks for structural shifts in the same series. Because the function has no horizon or smoothing argument, the call stays short, and the output contains one row per detected change point and region.


SELECT
  *
FROM
  ML.DETECT_CHANGE_POINTS(
    TABLE my_dataset.daily_sales,
    data_col => 'revenue',
    timestamp_col => 'sale_date',
    id_cols => ['region']
  );

The third query measures how revenue moves with advertising spend and discount rate in each region, using Spearman rank correlation instead of the default Pearson coefficient.


SELECT
  region,
  corr_col,
  correlation,
  segment_size
FROM
  ML.CORRELATION(
    TABLE my_dataset.daily_sales,
    target_col => 'revenue',
    target_correlation_cols => ['ad_spend', 'discount_rate'],
    dimension_cols => ['region'],
    method => 'SPEARMAN'
  );

The ML.CORRELATION output also contains rollup rows across all values of a dimension, and in those rows the dimension column is NULL. The documentation shows how to tell a rollup row from a genuine NULL in the data by checking whether the dimension appears in the segment array, and dashboards that display these results by segment need the same test.


··········


[[ADPLUS_300x250_1]]

INPUT LIMITS, PERMISSIONS AND PRICING FOR THE NEW BIGQUERY FUNCTIONS.


The reference pages for ML.TREND and ML.DETECT_CHANGE_POINTS list the same input limits: each series needs at least three data points, the supported data frequency ranges from 1 minute to 2 years, and a series can have at most 500,000 interpolated points. The pages for ML.SEASONALITY and ML.CORRELATION do not state equivalent limits, apart from the 12-column maximum for dimension_cols and the performance note on KENDALL.


For permissions, the ML.TREND and ML.DETECT_CHANGE_POINTS pages require bigquery.jobs.create on the project and bigquery.tables.getData on the input tables. No predefined role is named on those pages, and the other two reference pages do not state permissions.


On cost, the ML.TREND and ML.DETECT_CHANGE_POINTS pages say queries that use them are billed under standard BigQuery ML pricing, and they link to the BigQuery ML section of the pricing page. The reference pages do not list a separate price for these functions, and the ML.SEASONALITY and ML.CORRELATION pages do not mention pricing. Projects on on-demand billing pay according to the data their queries process, while projects on editions consume slots, so the BigQuery on-demand vs editions pricing comparison is the relevant reference before scheduling these functions over large tables. Organizations that have started using the new controls to block on-demand billing should confirm that the projects running these queries have a reservation assigned.


··········


THE FUNCTIONS INSIDE BIGQUERY CONVERSATIONAL ANALYTICS.


The conversational analytics documentation lists ML.TREND, ML.SEASONALITY and ML.DETECT_CHANGE_POINTS among the supported time series functions, next to AI.FORECAST, AI.DETECT_ANOMALIES and AI.CAUSAL_EFFECT, and places ML.CORRELATION under statistical analysis and data profiling with AI.KEY_DRIVERS and ML.DESCRIBE_DATA. According to the documentation, supported functions can be used in verified queries, and the agent can generate SQL that calls them when a user asks a question in plain language.


For teams that already let business users ask questions of a data agent, a question about whether sales have a weekly pattern or when a metric shifted can now be answered with a documented, generally available function instead of ad hoc SQL written by the model. The SQL still needs review, and the routine described in the guide on using BigQuery conversational analytics and checking the SQL applies here as well: confirm the table, the time column, the ID columns and any filters before trusting the result. The separate charges for agent features are covered in the breakdown of Gemini in BigQuery pricing.


··········


⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁤

BIGQUERY ML.TREND AND CHANGE POINT DETECTION: WHAT TO CHECK BEFORE PRODUCTION USE.


Google confirms in its release notes that all four functions are generally available in the BigQuery query editor and in conversational analytics as of November 24, 2026, and the reference pages document their syntax, arguments and output columns. The input limits, required permissions and the link to standard BigQuery ML pricing are documented only for ML.TREND and ML.DETECT_CHANGE_POINTS, and Google does not name the statistical method behind change point detection.


Before putting these functions into scheduled reports, a BI team should check three points. The time column must have a regular enough frequency within the documented range, because gaps are filled with interpolated values that appear in the output alongside real data. The status column should be monitored, since the documentation says it carries the error messages for invalid input. Finally, the cost of running the functions over many series with id_cols depends on the project's billing model, which on-demand projects see in bytes processed and editions projects see in slot consumption.


··········


FOLLOW US FOR MORE.


·····


DATA STUDIOS


·····


datastudios.org


bottom of page