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
guideSQL AGENT TEST

BigQuery’s daily active-user average can leave out days with no events

Give generated SQL a calendar to average over. But count a missing day as zero only when you know the event feed was complete.

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

Ask an analytics agent for average daily active users over three calendar days. Give it a complete event feed with three distinct users on Monday, no events on Tuesday, and one distinct user on Wednesday. If it groups the event rows by date and averages the two resulting counts, it returns 2. The requested calendar-day average is 4 ÷ 3, about 1.33. The query can run successfully and count each observed day correctly while still answering a different question: how many users were active on days with recorded activity?

Start with the dates, not the events

BigQuery’s GENERATE_DATE_ARRAY generates dates at one-day intervals by default and includes both endpoints. Use those dates as the rows the query must preserve. Aggregate distinct users once per reporting date, then attach those counts to the calendar. Under the explicit assumption that every date has complete telemetry, a day with no matching event count is zero.

-- event_date is already defined in the reporting time zone.
-- Both endpoint parameters are DATEs and are inclusive.
WITH calendar AS (
  SELECT day
  FROM UNNEST(GENERATE_DATE_ARRAY(@start_date, @end_date)) AS day
), daily AS (
  SELECT event_date AS day, COUNT(DISTINCT user_id) AS active_users
  FROM `project.dataset.events`
  WHERE event_date BETWEEN @start_date AND @end_date
  GROUP BY event_date
)
SELECT COUNT(*) AS calendar_days,
       AVG(COALESCE(daily.active_users, 0)) AS avg_daily_active_users
FROM calendar
LEFT JOIN daily USING (day);

This is a worked example, not a live BigQuery run. The extra calendar_days output gives reviewers a denominator to check against the requested date range. This query does not calculate distinct users across the entire period: someone active on Monday and Wednesday belongs in each day’s count.

Test a quiet day and a broken feed separately

Use the same three-day fixture twice. First mark Tuesday’s feed complete: expect three counted calendar days and about 1.33 daily users. Then mark Tuesday’s feed incomplete: do not accept 1.33 as a confirmed full-period average. If a separate ingestion record can identify incomplete dates, have the agent surface that status; if it reports an observed-days average instead, label it as such and show its denominator. The event table alone cannot distinguish a genuine zero from an outage in this fixture.

sources

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.