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 semantics

Snowflake BITXOR_AGG can hide a warning that appeared twice

XOR reports whether each flag appeared an odd number of times. For a daily report that asks which warnings ever appeared, use a bitwise OR and keep missing observations visible.

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

Ask a SQL agent, “Which warnings appeared in any import today?” and the important word is any. If each run stores its warnings in an integer bitmask, the query needs to keep a bit set whenever at least one run reported it. Snowflake’s BITOR_AGG does that. BITXOR_AGG instead sets a bit only when an odd number of rows have it set. Two real occurrences can disappear from the summary.

A three-run example

Suppose bit value 1 means “schema drift” and bit value 2 means “late source.” In this synthetic batch, one run reported schema drift, one reported both warnings, and one produced no mask. The following expected results are derived from Snowflake’s documented rules, not from a live warehouse run.

WITH runs AS (
  SELECT column1::NUMBER(38,0) AS warning_mask
  FROM VALUES (1), (3), (NULL)
)
SELECT BITXOR_AGG(warning_mask) AS odd_occurrence_mask,
       BITOR_AGG(warning_mask)  AS ever_seen_mask,
       COUNT(*)               AS run_count,
       COUNT(warning_mask)    AS reported_mask_count
FROM runs;

The XOR result is 2: the schema-drift bit is present in both 1 and 3, so it cancels, while the late-source bit occurs once. The OR result is 3, preserving both warnings. In a batch with masks 1 and 1 alone, XOR would return 0 even though every run reported schema drift. Snowflake documents that DISTINCT has no effect on BITXOR_AGG; adding the keyword is not a fix.

Don’t turn missing telemetry into a clean bill of health

Both aggregates ignore NULL inputs and return NULL if all inputs are NULL or the group is empty. If your telemetry uses 0 for a run that explicitly reported no warnings and NULL for a run that supplied no mask, keep that distinction in the result. In the example, show that the mask summarizes two reporting runs out of three. A zero OR mask from those two runs would say nothing about the third.

For a text-to-SQL regression test, include two runs with the same flag, a run with a zero mask, and an all-NULL group. Check the generated answer as well as the SQL: “ever seen,” “seen an odd number of times,” and “not observed” are three different claims.

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.