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 CORRECTNESS

Snowflake SKEW needs three latency measurements, not three request rows

A blank skewness value is not evidence of a symmetric distribution. Show the number of measured requests alongside the statistic.

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

A dashboard asks which API routes have asymmetric latency. One route has five request rows, but only two have a recorded duration. If an analytics agent fills the resulting blank skewness with zero, the report makes the route look as though it had a measured skewness of zero. What it actually had was too few measurements to calculate the statistic.

Snowflake’s SKEW reference defines the result as sample skewness over non-NULL values. It returns NULL with fewer than three inputs. Snowflake’s own worked example shows why counting table rows is misleading: the table has five rows, but the v2 column contains only two numbers, 22 and 35. SKEW(v2) returns NULL even though SKEW(v), over five numbers in the same table, returns a numeric result.

Put the two counts next to the statistic

For a report grouped by route, show both traffic and measurement coverage. Use the same input expression for the measured count and for skewness. This example assumes each row is one request and a missing duration is stored as SQL NULL. It is illustrative and was not run by the desk.

SELECT
  route,
  COUNT(*) AS request_rows,
  COUNT(latency_ms) AS measured_requests,
  SKEW(latency_ms) AS sample_latency_skew
FROM request_log
GROUP BY route;

For five request rows with durations 22, 35, NULL, NULL, and NULL, the expected result is five requests, two measured requests, and NULL skewness. Keep the numeric value null and label it “fewer than three measurements” when the measured count is below three. Avoid COALESCE(SKEW(latency_ms), 0): that would make a missing estimate look the same as a calculated zero. Also avoid filling missing durations with zero before aggregation; that substitutes observations instead of measuring latency.

For a text-to-SQL regression test, include that five-row route and a second route with three distinct measured durations. Check that the first route remains visible with its null estimate and its two counts. The three-input rule is a minimum for the calculation, not a recommendation that three measurements are enough to characterize a production route.

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.