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

One missing tag feed can null out Snowflake’s combined tag array

Keep the tags you received and report source coverage separately. An empty tag list and a missing feed are not the same thing.

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

Ask a SQL assistant to “show the tags we know about for each account,” and it might wrap the CRM and billing tag arrays in an outer array, then flatten it. In Snowflake, one missing input can make the entire result NULL, even if the other source supplied usable tags. Snowflake’s ARRAY_FLATTEN reference documents the rule: a NULL element in the outer array makes the function return NULL. An empty inner array, by contrast, contributes no elements to the concatenation.

Keep known tags and report completeness separately

Suppose the pipeline uses SQL NULL to mean that a feed did not deliver a tag list, and an empty array to mean that it delivered a list with no tags. In the synthetic example below, the CRM feed has renewal and the billing feed is missing. ARRAY_CONSTRUCT keeps the NULL input as an element; ARRAY_CONSTRUCT_COMPACT skips SQL NULL inputs. The example’s expected outputs follow from those documented rules.

WITH account AS (
  SELECT ARRAY_CONSTRUCT('renewal') AS crm_tags,
         NULL::ARRAY AS billing_tags
)
SELECT
  ARRAY_FLATTEN(ARRAY_CONSTRUCT(crm_tags, billing_tags))
    AS strict_tags,
  ARRAY_FLATTEN(ARRAY_CONSTRUCT_COMPACT(crm_tags, billing_tags))
    AS known_tags,
  crm_tags IS NOT NULL AND billing_tags IS NOT NULL
    AS both_sources_present
FROM account;

Here strict_tags is NULL, known_tags is ["renewal"], and both_sources_present is false. That lets a dashboard show a tag it actually received without implying that billing had no tags. If the question instead asks for a complete list from both feeds, use the strict result and display the coverage flag so readers know why it is missing.

Give generated SQL two nearly identical test rows

Hold the CRM array fixed at ["renewal"]. Give one row an empty billing array and the other a SQL NULL billing array. Both should show the same known tags, but only the first should report both sources present under this contract. Otherwise the query may have collapsed “checked and empty” into “not checked.” This pattern assumes each nonmissing input is itself an array: Snowflake documents that ARRAY_FLATTEN reports an error for a non-array element, and the compact constructor skips SQL NULLs, not arbitrary malformed values. It is a way to express a coverage policy, not a validator for incoming tags.

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.