live wire
▸EKOS submits 70.15% on BIRD’s hidden test and 88.33% on Mini-Dev with different Claude models; both entries are pendingBIRD submission PR #270▸MotherDuck rolls out DuckDB 2.0 with async I/O and reports faster cold reads in TPC-H and TPC-DS testsMotherDuck▸ThoughtSpot Spotter starts rolling out answer explanations for token-based results, not AgentQLThoughtSpot▸Snowflake previews Z.ai GLM 5.4 in Cortex Inference, but not in Cortex AgentsSnowflake release notes▸Removing Vietnamese diacritics cut text-to-SQL accuracy by 10.3–37.0 points across four models in an author studyLe Trung et al., Vietnamese MultiSpider artifacts▸Avelis 1.7 adds AI-built dashboards and reruns pinned exploratory SQL under each viewer’s permissionsAvelis release notes▸Aurora MySQL previews cluster groups with one routing endpoint; each query still runs on one clusterAWS What's New▸Rewind-HNSW uses 86.9% less memory than full snapshots in authors’ 20-version testsShea et al., Rewind-HNSW §5.5▸Snowflake previews pausing downstream dynamic table refreshes when data quality checks failSnowflake release notes▸BigQuery previews optional GoogleSQL optimization suggestions in its interactive SQL translatorGoogle Cloud documentation▸Snowflake extends its Tableau and Power BI dashboard migration preview to Azure deploymentsSnowflake release notes▸Google Cloud makes it generally available to unpublish Iceberg data shares from SAP Business Data CloudGoogle Cloud — BigQuery and Lakehouse documentation▸AWS previews organization-wide cost questions in Ops Agent for FinOpsAWS What's New▸Looker updates require API login credentials in the request body, not the URLGoogle Cloud — Looker documentation▸EKOS submits 70.15% on BIRD’s hidden test and 88.33% on Mini-Dev with different Claude models; both entries are pendingBIRD submission PR #270▸MotherDuck rolls out DuckDB 2.0 with async I/O and reports faster cold reads in TPC-H and TPC-DS testsMotherDuck▸ThoughtSpot Spotter starts rolling out answer explanations for token-based results, not AgentQLThoughtSpot▸Snowflake previews Z.ai GLM 5.4 in Cortex Inference, but not in Cortex AgentsSnowflake release notes▸Removing Vietnamese diacritics cut text-to-SQL accuracy by 10.3–37.0 points across four models in an author studyLe Trung et al., Vietnamese MultiSpider artifacts▸Avelis 1.7 adds AI-built dashboards and reruns pinned exploratory SQL under each viewer’s permissionsAvelis release notes▸Aurora MySQL previews cluster groups with one routing endpoint; each query still runs on one clusterAWS What's New▸Rewind-HNSW uses 86.9% less memory than full snapshots in authors’ 20-version testsShea et al., Rewind-HNSW §5.5▸Snowflake previews pausing downstream dynamic table refreshes when data quality checks failSnowflake release notes▸BigQuery previews optional GoogleSQL optimization suggestions in its interactive SQL translatorGoogle Cloud documentation▸Snowflake extends its Tableau and Power BI dashboard migration preview to Azure deploymentsSnowflake release notes▸Google Cloud makes it generally available to unpublish Iceberg data shares from SAP Business Data CloudGoogle Cloud — BigQuery and Lakehouse documentation▸AWS previews organization-wide cost questions in Ops Agent for FinOpsAWS What's New▸Looker updates require API login credentials in the request body, not the URLGoogle Cloud — Looker documentation
nl2sql.ai
guideBIGQUERY GUIDE

BigQuery’s TimesFM anomaly detector needs data from before the scoring window

When an analytics agent turns “flag unusual sales this week” into SQL, filtering the input to this week can remove the history TimesFM needs for comparison.

By The News Desk· Dec 1, 2026the quick take — two AI hosts go live when you do

If you ask an analytics agent to flag unusual sales this week, check where it puts the date filter. In BigQuery’s AI.DETECT_ANOMALIES, the dates you want to score and the dates the model needs to see are different things. The built-in TimesFM model forecasts from the historical portion of the input and compares the actual values in the target portion against that forecast. If a generated query filters away everything before the scoring window, a cutoff at the start of that window cannot restore the missing history. Google’s function reference spells out the split.

Put the reporting cutoff in the function, not at the start of its input

For a single input containing both periods, target_start_timestamp assigns points strictly before the cutoff to history and points at or after it to the target. Google’s worked Citi Bike example aggregates daily trips, limits the input at the end of the period of interest, and sets July 1, 2016 as the target start. The input query does not discard the dates before July. To investigate a week of daily sales, use the same shape: keep earlier daily totals in the input, end it at the reporting boundary, and use the first day of the week as the scoring cutoff. Alternatively, pass separate history and target tables or queries with matching columns. Function reference and worked example

There is also a distinction between “the last seven days” and “the last seven observations.” target_last_n_points selects observations, not calendar days. With a missing daily row, seven observations can cover more than seven calendar days. Use a timestamp cutoff when the question is about dates, and choose the appropriate reporting grain before asking the function to score the series. Function arguments

A failed series is not a clean series

Inspect ai_detect_anomalies_status before summarizing the output. The reference says the status is empty on success and notes that too little history can yield an error with NULL anomaly flags, bounds and probabilities. A dashboard or agent that counts only rows where is_anomaly is true can otherwise report zero alerts without saying that scoring failed. Keep failed evaluations separate from successfully scored points that were not flagged. This guidance applies to the TimesFM-backed AI.DETECT_ANOMALIES path, not every BigQuery anomaly function.

Filed by The News Desk. Corrections: desk@nl2sql.ai · Our standards →

comments · 0

    Comments are moderated before they appear. Your email is used once to confirm it is you — never shown, never sold. Corrections and questions get an answer from the desk when we have one.