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 PRACTICE

Snowflake can call two campaigns a tag match when both have a missing tag

ARRAYS_OVERLAP treats SQL NULL elements as equal. If only known tags should count, filter out missing tag values before building the arrays.

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

Ask a SQL assistant to “find pairs of campaigns that share at least one tag,” and ARRAYS_OVERLAP looks like a direct translation. In Snowflake, though, two campaigns can pass that test even when they have no known tag in common. If both arrays contain a SQL NULL element, the function counts those elements as a match.

That is documented behavior, not a query error. The Snowflake reference calls the function NULL-safe: for this comparison, NULLs are treated as known values. Its worked example compares ARRAY_CONSTRUCT(1, 2, NULL) with ARRAY_CONSTRUCT(3, NULL, 5) and returns TRUE. The only overlap is the NULL element. This example is about a missing element inside each array, not a NULL value standing in for the entire array.

Decide what counts as a shared tag

Suppose campaign A has spring and an unfilled tag slot, while campaign B has clearance and an unfilled slot. With the same inputs as Snowflake’s example, expressed as strings, ARRAYS_OVERLAP would report a match. That answers “do the stored arrays share an element under Snowflake’s comparison rules?” It does not answer “do these campaigns share a known tag?”

If the reporting rule is that missing entries never establish a match, exclude them before building the arrays from tag rows. Keep a separate indicator if the report also needs to show incomplete tagging. If the analyst actually wants campaigns that both have incomplete tagging, report that as its own condition rather than calling it a shared tag.

Test the result, not just whether the SQL runs

Give the assistant three fixtures: disjoint known tags with a NULL element on both sides, one shared known tag with missing entries on either side, and disjoint known tags with no missing entries. For a shared-known-tag metric, the expected results are false, true, and false. The first case is the one that exposes an unqualified ARRAYS_OVERLAP call. A query can execute successfully and still answer the wrong question.

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.